mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
[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:
parent
310c8c324f
commit
c29a75ed0d
@ -252,7 +252,7 @@ struct pardevice *parport_open (int devnum, const char *name,
|
||||
selected = port->daisy;
|
||||
parport_release (dev);
|
||||
|
||||
if (selected != port->daisy) {
|
||||
if (selected != daisy) {
|
||||
/* No corresponding device. */
|
||||
parport_unregister_device (dev);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user