aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/misc/gpio_decoder.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-18 11:40:04 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-18 11:49:13 -0800
commita196b2c9f5f752e139f91d306fcb471e97723253 (patch)
tree1fc312304fcd01eb83b834cb9002b5fb8ba7093f /drivers/input/misc/gpio_decoder.c
parentInput: bfin_rotary - switch to using devm_add_action_or_reset() (diff)
downloadlinux-dev-a196b2c9f5f752e139f91d306fcb471e97723253.tar.xz
linux-dev-a196b2c9f5f752e139f91d306fcb471e97723253.zip
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 <linux@roeck-us.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to '')
-rw-r--r--drivers/input/misc/gpio_decoder.c1
1 files changed, 0 insertions, 1 deletions
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;
}