diff options
author | Lee Jones <lee.jones@linaro.org> | 2012-04-17 18:52:26 +0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2012-07-13 11:55:44 +0400 |
commit | 98582d9562b4bea6b0eb6e2bfafcd3fab3b60ccb (patch) | |
tree | da81433a32f4d2a68945f1c458eb31b75ae00a92 /drivers/i2c/busses/i2c-nomadik.c | |
parent | 5e1ac7db04f963e230ffa0a39c5df376733f8c0b (diff) | |
download | linux-98582d9562b4bea6b0eb6e2bfafcd3fab3b60ccb.tar.xz |
ARM: ux500: Remove unused i2c platform_data initialisation code
Now that u5500 is obsolete, u8500 is the only user of the Nomadik
i2c driver. As such there is no requirement to differentiate between
initialisation values. By the time a new SoC is released, almost all
of the ux500 platform will be DT:ed, so we can make decisions based
on the compatible property instead.
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-nomadik.c')
-rw-r--r-- | drivers/i2c/busses/i2c-nomadik.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c index 5267ab93d550..a92440dbef07 100644 --- a/drivers/i2c/busses/i2c-nomadik.c +++ b/drivers/i2c/busses/i2c-nomadik.c @@ -965,8 +965,7 @@ static int __devinit nmk_i2c_probe(struct platform_device *pdev) adap->owner = THIS_MODULE; adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD; adap->algo = &nmk_i2c_algo; - adap->timeout = pdata->timeout ? msecs_to_jiffies(pdata->timeout) : - msecs_to_jiffies(20000); + adap->timeout = msecs_to_jiffies(pdata->timeout); snprintf(adap->name, sizeof(adap->name), "Nomadik I2C%d at %lx", pdev->id, (unsigned long)res->start); |