From: Marko Kohtala Date: Fri, 6 Jan 2006 08:19:46 +0000 (-0800) Subject: [PATCH] parport: daisy chain device id reading fix X-Git-Tag: v2.6.16-rc1~936^2~79 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c29a75ed0d94fae64b59345ea96e52424ae9c6a2;p=linux-2.6 [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/parport/daisy.c b/drivers/parport/daisy.c index 6915114b95..37dc179335 100644 --- a/drivers/parport/daisy.c +++ b/drivers/parport/daisy.c @@ -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;