]> git.hungrycats.org Git - linux/commitdiff
i2c: Fix 'ignore' module parameter handling in i2c-core
authorMark M. Hoffman <mhoffman@lightlink.com>
Wed, 26 Jul 2006 19:53:13 +0000 (21:53 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Aug 2006 03:52:13 +0000 (20:52 -0700)
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: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/i2c-core.c

index 45e2cdf547367ba3ba33f28eabd3c1d7175c054d..2e79137dc2019a1909bc626e68505235b49d40fc 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;