diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-07-28 16:33:14 +0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-08-01 22:01:41 +0400 |
commit | 4aa6a1619517ad37ccc22d1535094e5ad3c84e1d (patch) | |
tree | 9ad7a087bf02346431e851cec4f6bc13558419a7 /drivers/i2c | |
parent | f5e596cd9f0ec6c03660fe4196d395bc3da919a4 (diff) | |
download | linux-4aa6a1619517ad37ccc22d1535094e5ad3c84e1d.tar.xz |
i2c: gpio: Drop dead code in i2c_gpio_remove
Commit a0682a31 ("i2c: gpio: Use devm_gpio_request()") left unused
code behind, clean it up.
Fixes: a0682a315889 ("i2c: gpio: Use devm_gpio_request()")
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-gpio.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-gpio.c b/drivers/i2c/busses/i2c-gpio.c index 71a45b210a24..933f1e453e41 100644 --- a/drivers/i2c/busses/i2c-gpio.c +++ b/drivers/i2c/busses/i2c-gpio.c @@ -238,12 +238,10 @@ static int i2c_gpio_probe(struct platform_device *pdev) static int i2c_gpio_remove(struct platform_device *pdev) { struct i2c_gpio_private_data *priv; - struct i2c_gpio_platform_data *pdata; struct i2c_adapter *adap; priv = platform_get_drvdata(pdev); adap = &priv->adap; - pdata = &priv->pdata; i2c_del_adapter(adap); |