Commit 5d67e4c6 authored by Sachin Kamat's avatar Sachin Kamat Committed by Dmitry Torokhov

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: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Yoichi Yuasa <yuasa@linux-mips.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 221a27c2
...@@ -131,7 +131,6 @@ static int cobalt_buttons_probe(struct platform_device *pdev) ...@@ -131,7 +131,6 @@ static int cobalt_buttons_probe(struct platform_device *pdev)
err_free_mem: err_free_mem:
input_free_polled_device(poll_dev); input_free_polled_device(poll_dev);
kfree(bdev); kfree(bdev);
dev_set_drvdata(&pdev->dev, NULL);
return error; return error;
} }
...@@ -144,7 +143,6 @@ static int cobalt_buttons_remove(struct platform_device *pdev) ...@@ -144,7 +143,6 @@ static int cobalt_buttons_remove(struct platform_device *pdev)
input_free_polled_device(bdev->poll_dev); input_free_polled_device(bdev->poll_dev);
iounmap(bdev->reg); iounmap(bdev->reg);
kfree(bdev); kfree(bdev);
dev_set_drvdata(dev, NULL);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment