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

Input: pcspkr - 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
16e263ac 30a6aa1f

-1
-1
drivers/input/misc/pcspkr.c
··· 100 100 struct input_dev *pcspkr_dev = platform_get_drvdata(dev); 101 101 102 102 input_unregister_device(pcspkr_dev); 103 - platform_set_drvdata(dev, NULL); 104 103 /* turn off the speaker */ 105 104 pcspkr_event(NULL, EV_SND, SND_BELL, 0); 106 105