diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2006-12-08 05:39:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:58 -0500 |
commit | 7eb9976f10354f0e3bc1a52b66b9cf857ff41088 (patch) | |
tree | 8a9f9bb93a1d3bca8e33de4a7c3183c9288deece /drivers/char/sx.c | |
parent | c9594643c095da0a0ad4d5f0a1ff357a84e91524 (diff) |
[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>
Diffstat (limited to 'drivers/char/sx.c')
-rw-r--r-- | drivers/char/sx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/sx.c b/drivers/char/sx.c index 0122b2d93312..f506ee3243d1 100644 --- a/drivers/char/sx.c +++ b/drivers/char/sx.c | |||
@@ -2791,6 +2791,7 @@ static int __init sx_init(void) | |||
2791 | retval = 0; | 2791 | retval = 0; |
2792 | } else if (retval) { | 2792 | } else if (retval) { |
2793 | #ifdef CONFIG_EISA | 2793 | #ifdef CONFIG_EISA |
2794 | retval = retval1; | ||
2794 | if (retval1) | 2795 | if (retval1) |
2795 | #endif | 2796 | #endif |
2796 | misc_deregister(&sx_fw_device); | 2797 | misc_deregister(&sx_fw_device); |