From 7eb9976f10354f0e3bc1a52b66b9cf857ff41088 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Fri, 8 Dec 2006 02:39:06 -0800 Subject: [PATCH] [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 Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/char/sx.c | 1 + 1 file changed, 1 insertion(+) 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) retval = 0; } else if (retval) { #ifdef CONFIG_EISA + retval = retval1; if (retval1) #endif misc_deregister(&sx_fw_device); -- 2.30.2