X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fi2c%2Fbusses%2Fi2c-parport-light.c;fp=drivers%2Fi2c%2Fbusses%2Fi2c-parport-light.c;h=c63025a4c8613744fb1a6e7706e018188391a5b3;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=e09ebbb2f9f09dc14dc00129211c82cfd4da95cb;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/i2c/busses/i2c-parport-light.c b/drivers/i2c/busses/i2c-parport-light.c index e09ebbb2f..c63025a4c 100644 --- a/drivers/i2c/busses/i2c-parport-light.c +++ b/drivers/i2c/busses/i2c-parport-light.c @@ -121,14 +121,9 @@ static struct i2c_adapter parport_adapter = { 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; } if (base == 0) {