]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/scsi/aha152x.c
[SCSI] aha152x: fix init suspiciously returned 1, it should follow 0/-E convention
[linux-2.6-omap-h63xx.git] / drivers / scsi / aha152x.c
index f5215fd4b73d30bac4603dd7deab26adccb11971..f0c4ffceabbe168d8ede99a016efd6153d7dc186 100644 (file)
@@ -3830,7 +3830,7 @@ static int __init aha152x_init(void)
                        iounmap(p);
                }
                if (!ok && setup_count == 0)
-                       return 0;
+                       return -ENODEV;
 
                printk(KERN_INFO "aha152x: BIOS test: passed, ");
 #else
@@ -3909,7 +3909,7 @@ static int __init aha152x_init(void)
 #endif
        }
 
-       return 1;
+       return 0;
 }
 
 static void __exit aha152x_exit(void)