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:
66b0f52
)
Input: gpio_mouse - remove redundant platform_set_drvdata()
author
Sachin Kamat
<
[email protected]
>
Mon, 6 May 2013 03:00:38 +0000
(20:00 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Mon, 6 May 2013 03:15:18 +0000
(20:15 -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: Hans-Christian Egtvedt <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/mouse/gpio_mouse.c
patch
|
blob
|
history
diff --git
a/drivers/input/mouse/gpio_mouse.c
b/drivers/input/mouse/gpio_mouse.c
index 532eaca4cc56d1452ea75024dd416c7e93032e5e..6b44413f54e357cd9201af5dc011bed845e1377d 100644
(file)
--- a/
drivers/input/mouse/gpio_mouse.c
+++ b/
drivers/input/mouse/gpio_mouse.c
@@
-138,7
+138,6
@@
static int gpio_mouse_probe(struct platform_device *pdev)
out_free_polldev:
input_free_polled_device(input_poll);
- platform_set_drvdata(pdev, NULL);
out_free_gpios:
while (--i >= 0) {
@@
-165,8
+164,6
@@
static int gpio_mouse_remove(struct platform_device *pdev)
gpio_free(pin);
}
- platform_set_drvdata(pdev, NULL);
-
return 0;
}