diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-18 18:48:18 +0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-09-18 18:53:41 +0400 |
commit | 390de835b61228abf6646f2b14530edca8d7512f (patch) | |
tree | 0285d004168f0e110e805eaf63d4ca3fa3448c37 | |
parent | 4906a31b4c60b2499e63737f3194c596d4f86482 (diff) | |
download | linux-390de835b61228abf6646f2b14530edca8d7512f.tar.xz |
Input: rb532_button - remove redundant dev_set_drvdata
Driver core sets the data to NULL upon release or probe
failure. Hence explicit setting is not necessary.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r-- | drivers/input/misc/rb532_button.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/misc/rb532_button.c b/drivers/input/misc/rb532_button.c index fb4f8ac3343b..83fff38b86b3 100644 --- a/drivers/input/misc/rb532_button.c +++ b/drivers/input/misc/rb532_button.c @@ -87,7 +87,6 @@ static int rb532_button_remove(struct platform_device *pdev) input_unregister_polled_device(poll_dev); input_free_polled_device(poll_dev); - dev_set_drvdata(&pdev->dev, NULL); return 0; } |