[PATCH] i2c-gpio: Drop dead code in i2c_gpio_remove

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
Cc: Jingoo Han <jg1.han@xxxxxxxxxxx>
Cc: Violeta Menendez <violeta.menendez@xxxxxxxxxxxxxxx>
Cc: Ian Molton <ian.molton@xxxxxxxxxxxxxxx>
Cc: Wolfram Sang <wsa@xxxxxxxxxxxxx>
---
 drivers/i2c/busses/i2c-gpio.c |    2 --
 1 file changed, 2 deletions(-)

--- linux-3.16-rc6.orig/drivers/i2c/busses/i2c-gpio.c	2014-06-16 05:45:28.000000000 +0200
+++ linux-3.16-rc6/drivers/i2c/busses/i2c-gpio.c	2014-07-28 14:26:07.821013275 +0200
@@ -238,12 +238,10 @@ static int i2c_gpio_probe(struct platfor
 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);
 


-- 
Jean Delvare
SUSE L3 Support
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux