[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: Jiri Slaby <jirislaby@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
c9594643c0
commit
7eb9976f10
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user