提交 7eb9976f 编写于 作者: J Jiri Slaby 提交者: Linus Torvalds

[PATCH] Char: sx, fix return in module init

If pci_register_driver fails, but eisa_driver_register doesn't, we don't call
misc_deregister, but returns error.  Return OK in such cases.
Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 c9594643
......@@ -2791,6 +2791,7 @@ static int __init sx_init(void)
retval = 0;
} else if (retval) {
#ifdef CONFIG_EISA
retval = retval1;
if (retval1)
#endif
misc_deregister(&sx_fw_device);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册