From: Guenter Roeck Date: Wed, 18 Jan 2017 19:44:55 +0000 (-0800) Subject: Input: ab8500-ponkey - drop unnecessary call to platform_set_drvdata X-Git-Tag: v4.14-rc1~4^2~54^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8f6a6ad777f14e3ec48d410a840621a45fce98a;p=platform%2Fkernel%2Flinux-rpi.git Input: ab8500-ponkey - 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/misc/ab8500-ponkey.c b/drivers/input/misc/ab8500-ponkey.c index 4f5ef5b..a33ed57 100644 --- a/drivers/input/misc/ab8500-ponkey.c +++ b/drivers/input/misc/ab8500-ponkey.c @@ -109,7 +109,6 @@ static int ab8500_ponkey_probe(struct platform_device *pdev) return error; } - platform_set_drvdata(pdev, ponkey); return 0; }