linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / i2c / busses / i2c-parport.c
index 934bd55..7e2e8cd 100644 (file)
@@ -241,14 +241,9 @@ static struct parport_driver i2c_parport_driver = {
 
 static int __init i2c_parport_init(void)
 {
-       if (type < 0) {
-               printk(KERN_WARNING "i2c-parport: adapter type unspecified\n");
-               return -ENODEV;
-       }
-
-       if (type >= ARRAY_SIZE(adapter_parm)) {
+       if (type < 0 || type >= ARRAY_SIZE(adapter_parm)) {
                printk(KERN_WARNING "i2c-parport: invalid type (%d)\n", type);
-               return -ENODEV;
+               type = 0;
        }
 
        return parport_register_driver(&i2c_parport_driver);