diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-06 06:35:43 +0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-05-06 07:14:06 +0400 |
commit | 18fc6f5096d4fed93421bedc2a26350520fbd6ba (patch) | |
tree | d311b85a63531612bb2a658ae853fac322847d49 | |
parent | 5ed7ecfc79a7d3f16449e95c7368c396b51e1de9 (diff) | |
download | linux-18fc6f5096d4fed93421bedc2a26350520fbd6ba.tar.xz |
Input: max8925_onkey - 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/misc/max8925_onkey.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/misc/max8925_onkey.c b/drivers/input/misc/max8925_onkey.c index f9179b2585a9..eef41cfc054d 100644 --- a/drivers/input/misc/max8925_onkey.c +++ b/drivers/input/misc/max8925_onkey.c @@ -148,8 +148,6 @@ static int max8925_onkey_remove(struct platform_device *pdev) input_unregister_device(info->idev); kfree(info); - platform_set_drvdata(pdev, NULL); - return 0; } |