]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[I2C] i2c-mv64xxx: Don't set i2c_adapter.retries
authorJean Delvare <khali@linux-fr.org>
Thu, 22 Nov 2007 15:58:08 +0000 (16:58 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Jan 2008 15:04:01 +0000 (15:04 +0000)
I2C adapter drivers are supposed to handle retries on nack by themselves
if they do, so there's no point in setting .retries if they don't.

As this retry mechanism is going away (at least in its current form),
clean this up now so that we don't get build failures later.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Mark A. Greer <mgreer@mvista.com>
arch/powerpc/sysdev/mv64x60_dev.c
arch/ppc/syslib/mv64x60.c
drivers/i2c/busses/i2c-mv64xxx.c
include/linux/mv643xx_i2c.h

index 548a32082e4a2f65dd5173b47ad2ded12e1f1573..4316f5a48a0f7bc696fd70ba22d03beb433699c7 100644 (file)
@@ -361,12 +361,6 @@ static int __init mv64x60_i2c_device_setup(struct device_node *np, int id)
        else
                pdata.timeout = 1000;   /* 1 second */
 
-       prop = of_get_property(np, "retries", NULL);
-       if (prop)
-               pdata.retries = *prop;
-       else
-               pdata.retries = 1;
-
        pdev = platform_device_alloc(MV64XXX_I2C_CTLR_NAME, id);
        if (!pdev)
                return -ENOMEM;
index 2744b8a6f66aee66daa87d9f97332f54afd2e6f2..90fe904d36141623c5f81f922647b4ac96af171a 100644 (file)
@@ -411,7 +411,6 @@ static struct mv64xxx_i2c_pdata mv64xxx_i2c_pdata = {
        .freq_m                 = 8,
        .freq_n                 = 3,
        .timeout                = 1000, /* Default timeout of 1 second */
-       .retries                = 1,
 };
 
 static struct resource mv64xxx_i2c_resources[] = {
index cdd1ef99fcff512e90c900e07fb04669872bc7a3..036e6a883e6788e1564a56ae04afb227971681d6 100644 (file)
@@ -532,7 +532,6 @@ mv64xxx_i2c_probe(struct platform_device *pd)
        drv_data->adapter.owner = THIS_MODULE;
        drv_data->adapter.class = I2C_CLASS_HWMON;
        drv_data->adapter.timeout = pdata->timeout;
-       drv_data->adapter.retries = pdata->retries;
        drv_data->adapter.nr = pd->id;
        platform_set_drvdata(pd, drv_data);
        i2c_set_adapdata(&drv_data->adapter, drv_data);
index adb629b15477fc0de5bc956745633cf7baca3f22..5db5152e9de57cdfe72aac9b26d5e7dccd9c0d8c 100644 (file)
@@ -17,7 +17,6 @@ struct mv64xxx_i2c_pdata {
        u32     freq_m;
        u32     freq_n;
        u32     timeout;        /* In milliseconds */
-       u32     retries;
 };
 
 #endif /*_MV64XXX_I2C_H_*/