summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-gpio.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2014-07-28 14:33:14 +0200
committerWolfram Sang <wsa@the-dreams.de>2014-08-01 20:01:41 +0200
commit4aa6a1619517ad37ccc22d1535094e5ad3c84e1d (patch)
tree9ad7a087bf02346431e851cec4f6bc13558419a7 /drivers/i2c/busses/i2c-gpio.c
parenti2c: pca954x: put the mux to disconnected state after resume (diff)
downloadlinux-4aa6a1619517ad37ccc22d1535094e5ad3c84e1d.tar.xz
linux-4aa6a1619517ad37ccc22d1535094e5ad3c84e1d.zip
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/busses/i2c-gpio.c')
-rw-r--r--drivers/i2c/busses/i2c-gpio.c2
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);