Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Sachin Kamat and committed by
Dmitry Torokhov
b189e4d9 7a9f4ff2

-2
-2
drivers/input/misc/pm8xxx-vibrator.c
··· 249 249 input_unregister_device(vib->vib_input_dev); 250 250 kfree(vib); 251 251 252 - platform_set_drvdata(pdev, NULL); 253 - 254 252 return 0; 255 253 } 256 254