From: Guenter Roeck Date: Wed, 18 Jan 2017 19:40:04 +0000 (-0800) Subject: Input: gpio_decoder - drop unnecessary call to platform_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a196b2c9f5f752e139f91d306fcb471e97723253;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: gpio_decoder - 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/gpio_decoder.c b/drivers/input/misc/gpio_decoder.c index ca7e0bacb2d8..1dca526e6f1a 100644 --- a/drivers/input/misc/gpio_decoder.c +++ b/drivers/input/misc/gpio_decoder.c @@ -110,7 +110,6 @@ static int gpio_decoder_probe(struct platform_device *pdev) dev_err(dev, "failed to register polled device\n"); return err; } - platform_set_drvdata(pdev, decoder); return 0; }