Commit c29a75ed0d94fae64b59345ea96e52424ae9c6a2

Authored by Marko Kohtala
Committed by Linus Torvalds
1 parent 310c8c324f

[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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/parport/daisy.c
... ... @@ -252,7 +252,7 @@
252 252 selected = port->daisy;
253 253 parport_release (dev);
254 254  
255   - if (selected != port->daisy) {
  255 + if (selected != daisy) {
256 256 /* No corresponding device. */
257 257 parport_unregister_device (dev);
258 258 return NULL;