summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-18 07:48:18 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-09-18 07:53:41 -0700
commit390de835b61228abf6646f2b14530edca8d7512f (patch)
tree0285d004168f0e110e805eaf63d4ca3fa3448c37 /drivers
parent4906a31b4c60b2499e63737f3194c596d4f86482 (diff)
downloadblackbird-op-linux-390de835b61228abf6646f2b14530edca8d7512f.tar.gz
blackbird-op-linux-390de835b61228abf6646f2b14530edca8d7512f.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/misc/rb532_button.c1
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;
}
OpenPOWER on IntegriCloud