[PATCH] parport: daisy chain device id reading fix

Device ID reading from daisy chain devices failed because the daisy
device could not be opened.

Signed-off-by: Marko Kohtala <marko.kohtala@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Marko Kohtala 2006-01-06 00:19:46 -08:00 committed by Linus Torvalds
parent 310c8c324f
commit c29a75ed0d

View File

@ -252,7 +252,7 @@ struct pardevice *parport_open (int devnum, const char *name,
selected = port->daisy; selected = port->daisy;
parport_release (dev); parport_release (dev);
if (selected != port->daisy) { if (selected != daisy) {
/* No corresponding device. */ /* No corresponding device. */
parport_unregister_device (dev); parport_unregister_device (dev);
return NULL; return NULL;