aboutsummaryrefslogtreecommitdiff
path: root/drivers/parport
diff options
context:
space:
mode:
authorMarko Kohtala <marko.kohtala@gmail.com>2006-01-06 00:19:46 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 08:33:57 -0800
commitc29a75ed0d94fae64b59345ea96e52424ae9c6a2 (patch)
treecf118f0c5e6b340428374bd5e093026bd77317a3 /drivers/parport
parent310c8c324f988625a2880deab67607bf4e5aeb8a (diff)
[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>
Diffstat (limited to 'drivers/parport')
-rw-r--r--drivers/parport/daisy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/parport/daisy.c b/drivers/parport/daisy.c
index 6915114b953..37dc1793351 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;