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

Input: m68kspkr - 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
30a6aa1f 3e32e0b8

-1
-1
drivers/input/misc/m68kspkr.c
··· 85 85 struct input_dev *input_dev = platform_get_drvdata(dev); 86 86 87 87 input_unregister_device(input_dev); 88 - platform_set_drvdata(dev, NULL); 89 88 /* turn off the speaker */ 90 89 m68kspkr_event(NULL, EV_SND, SND_BELL, 0); 91 90