Input: gpio_tilt_polled - remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 6 May 2013 02:35:04 +0000 (19:35 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 6 May 2013 03:14:03 +0000 (20:14 -0700)
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>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/gpio_tilt_polled.c

index da05cca8b5622a3576be39b44149ca3cb02ebf11..714c68369134be4939b166421c0dcd5fbd38eeb8 100644 (file)
@@ -184,8 +184,6 @@ static int gpio_tilt_polled_remove(struct platform_device *pdev)
        struct gpio_tilt_polled_dev *tdev = platform_get_drvdata(pdev);
        const struct gpio_tilt_platform_data *pdata = tdev->pdata;
 
-       platform_set_drvdata(pdev, NULL);
-
        input_unregister_polled_device(tdev->poll_dev);
        input_free_polled_device(tdev->poll_dev);