diff mbox

i2c-gpio: Drop dead code in i2c_gpio_remove

Message ID 20140728143314.691999a5@endymion.delvare
State Accepted
Headers show

Commit Message

Jean Delvare July 28, 2014, 12:33 p.m. UTC
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>
Cc: Jingoo Han <jg1.han@samsung.com>
Cc: Violeta Menendez <violeta.menendez@codethink.co.uk>
Cc: Ian Molton <ian.molton@codethink.co.uk>
Cc: Wolfram Sang <wsa@the-dreams.de>
---
 drivers/i2c/busses/i2c-gpio.c |    2 --
 1 file changed, 2 deletions(-)

Comments

Wolfram Sang Aug. 1, 2014, 6:02 p.m. UTC | #1
On Mon, Jul 28, 2014 at 02:33:14PM +0200, Jean Delvare wrote:
> 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>
> Cc: Jingoo Han <jg1.han@samsung.com>
> Cc: Violeta Menendez <violeta.menendez@codethink.co.uk>
> Cc: Ian Molton <ian.molton@codethink.co.uk>
> Cc: Wolfram Sang <wsa@the-dreams.de>

Applied to for-next, thanks!
diff mbox

Patch

--- 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);