ioc3/ioc4: fix error path on driver registration
[linux-3.10.git] / drivers / sn / ioc3.c
index 354e9f1..66802a4 100644 (file)
@@ -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 */