diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-06 10:35:41 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-05-08 12:04:56 -0400 |
commit | c8712a53671aef12a8b6b3ec4e942ef4f92bc17e (patch) | |
tree | 5cc14d24291aecfd71d2dbc3a83aaf184ee8919f | |
parent | b6a08a4ad8d44be925c5a183130aec348aa1a8b6 (diff) |
Input: pxa27x_keypad - remove redundant platform_set_drvdata()
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 <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r-- | drivers/input/keyboard/pxa27x_keypad.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/keyboard/pxa27x_keypad.c b/drivers/input/keyboard/pxa27x_keypad.c index 5330d8fbf6c0..74e30cccbeab 100644 --- a/drivers/input/keyboard/pxa27x_keypad.c +++ b/drivers/input/keyboard/pxa27x_keypad.c | |||
@@ -609,7 +609,6 @@ static int pxa27x_keypad_remove(struct platform_device *pdev) | |||
609 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 609 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
610 | release_mem_region(res->start, resource_size(res)); | 610 | release_mem_region(res->start, resource_size(res)); |
611 | 611 | ||
612 | platform_set_drvdata(pdev, NULL); | ||
613 | kfree(keypad); | 612 | kfree(keypad); |
614 | 613 | ||
615 | return 0; | 614 | return 0; |