From: Sachin Kamat Date: Mon, 6 May 2013 02:36:11 +0000 (-0700) Subject: Input: pm8xxx-vibrator - remove redundant platform_set_drvdata() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b189e4d94d747004fc297524377029c9ada72ba2;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Input: pm8xxx-vibrator - 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 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/pm8xxx-vibrator.c b/drivers/input/misc/pm8xxx-vibrator.c index a9da65e41c5b..ec086f6f3cc3 100644 --- a/drivers/input/misc/pm8xxx-vibrator.c +++ b/drivers/input/misc/pm8xxx-vibrator.c @@ -249,8 +249,6 @@ static int pm8xxx_vib_remove(struct platform_device *pdev) input_unregister_device(vib->vib_input_dev); kfree(vib); - platform_set_drvdata(pdev, NULL); - return 0; }