]> git.hungrycats.org Git - linux/commitdiff
I2C: fix 'ignore' module parameter handling
authorMark M. Hoffman <mhoffman@lightlink.com>
Fri, 22 Sep 2006 00:22:54 +0000 (02:22 +0200)
committerAdrian Bunk <bunk@stusta.de>
Fri, 22 Sep 2006 00:22:54 +0000 (02:22 +0200)
This patch fixes a bug in the handling of 'ignore' module parameters of I2C
client drivers.

Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/i2c/i2c-core.c

index 1a2c9ab5d9e326a21a6be05b09cef994c2ed7286..62d7c7bdc8cb419c4e62c28e6e175157cd6155ff 100644 (file)
@@ -756,9 +756,9 @@ int i2c_probe(struct i2c_adapter *adapter,
                                        "parameter for adapter %d, "
                                        "addr 0x%02x\n", adap_id,
                                        address_data->ignore[j + 1]);
+                               ignore = 1;
+                               break;
                        }
-                       ignore = 1;
-                       break;
                }
                if (ignore)
                        continue;