summaryrefslogtreecommitdiffstats
path: root/drivers/sn/ioc3.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-12-15 03:00:28 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 17:53:27 +0100
commit9385565e20c4acf97cd8e2fd7155750e578edcc4 (patch)
tree55ee76523bb308ef73a2f91942953db6b79fe1c9 /drivers/sn/ioc3.c
parentioc3/ioc4: various section fixes (diff)
downloadlinux-9385565e20c4acf97cd8e2fd7155750e578edcc4.tar.xz
linux-9385565e20c4acf97cd8e2fd7155750e578edcc4.zip
ioc3/ioc4: fix error path on driver registration
Two IOC3 and IOC4 drivers have broken error paths on registration. Fix them. Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: Pat Gefre <pfg@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/sn/ioc3.c')
-rw-r--r--drivers/sn/ioc3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/sn/ioc3.c b/drivers/sn/ioc3.c
index 354e9f17e35a..66802a4390cc 100644
--- a/drivers/sn/ioc3.c
+++ b/drivers/sn/ioc3.c
@@ -820,7 +820,7 @@ static int __init ioc3_init(void)
{
if (ia64_platform_is("sn2"))
return pci_register_driver(&ioc3_driver);
- return 0;
+ return -ENODEV;
}
/* Module unload */