提交 c29a75ed 编写于 作者: M Marko Kohtala 提交者: Linus Torvalds

[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: NMarko Kohtala <marko.kohtala@gmail.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 310c8c32
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册