From: Guenter Roeck Date: Wed, 18 Jan 2017 19:45:25 +0000 (-0800) Subject: Input: twl4030_keypad - drop unnecessary call to platform_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e634d08dec48023394f816cdf17cc9f040b8d56f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: twl4030_keypad - drop unnecessary call to platform_set_drvdata There is no call to platform_get_drvdata() or dev_get_drvdata(). Drop the unnecessary call to platform_set_drvdata(). Signed-off-by: Guenter Roeck Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/twl4030_keypad.c b/drivers/input/keyboard/twl4030_keypad.c index 323a0fb575a4..29396ca69416 100644 --- a/drivers/input/keyboard/twl4030_keypad.c +++ b/drivers/input/keyboard/twl4030_keypad.c @@ -441,7 +441,6 @@ static int twl4030_kp_probe(struct platform_device *pdev) return -EIO; } - platform_set_drvdata(pdev, kp); return 0; }