diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-18 07:45:27 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-09-18 07:53:12 -0700 |
commit | 5d67e4c6f50d2706ef9cca522a093b30c8cba66a (patch) | |
tree | ef38207cd092e17512295aab6ad0dcb2d7f2a884 /drivers | |
parent | 221a27c240343b39052c05baa64deace845801ff (diff) | |
download | linux-5d67e4c6f50d2706ef9cca522a093b30c8cba66a.tar.bz2 |
Input: cobalt_btns - 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>
Cc: Yoichi Yuasa <yuasa@linux-mips.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/misc/cobalt_btns.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/input/misc/cobalt_btns.c b/drivers/input/misc/cobalt_btns.c index 4f77f87847e8..b5d71d245854 100644 --- a/drivers/input/misc/cobalt_btns.c +++ b/drivers/input/misc/cobalt_btns.c @@ -131,7 +131,6 @@ static int cobalt_buttons_probe(struct platform_device *pdev) err_free_mem: input_free_polled_device(poll_dev); kfree(bdev); - dev_set_drvdata(&pdev->dev, NULL); return error; } @@ -144,7 +143,6 @@ static int cobalt_buttons_remove(struct platform_device *pdev) input_free_polled_device(bdev->poll_dev); iounmap(bdev->reg); kfree(bdev); - dev_set_drvdata(dev, NULL); return 0; } |