projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45d763f
)
Input: gpio_tilt_polled - remove redundant platform_set_drvdata()
author
Sachin Kamat
<
[email protected]
>
Mon, 6 May 2013 02:35:04 +0000
(19:35 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Mon, 6 May 2013 03:14:03 +0000
(20:14 -0700)
Commit
0998d06310
(device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <
[email protected]
>
Acked-by: Heiko Stuebner <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/misc/gpio_tilt_polled.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/gpio_tilt_polled.c
b/drivers/input/misc/gpio_tilt_polled.c
index da05cca8b5622a3576be39b44149ca3cb02ebf11..714c68369134be4939b166421c0dcd5fbd38eeb8 100644
(file)
--- a/
drivers/input/misc/gpio_tilt_polled.c
+++ b/
drivers/input/misc/gpio_tilt_polled.c
@@
-184,8
+184,6
@@
static int gpio_tilt_polled_remove(struct platform_device *pdev)
struct gpio_tilt_polled_dev *tdev = platform_get_drvdata(pdev);
const struct gpio_tilt_platform_data *pdata = tdev->pdata;
- platform_set_drvdata(pdev, NULL);
-
input_unregister_polled_device(tdev->poll_dev);
input_free_polled_device(tdev->poll_dev);