forked from luck/tmp_suning_uos_patched
i2c: gpio: Drop dead code in i2c_gpio_remove
Commita0682a31
("i2c: gpio: Use devm_gpio_request()") left unused code behind, clean it up. Fixes:a0682a3158
("i2c: gpio: Use devm_gpio_request()") Signed-off-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
f5e596cd9f
commit
4aa6a16195
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user