Skip to content

Commit 16e263a

Browse files
Sachin Kamatdtor
authored andcommitted
Input: pcspkr - remove redundant platform_set_drvdata()
Commit 0998d06 (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>
1 parent 30a6aa1 commit 16e263a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/input/misc/pcspkr.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ static int pcspkr_remove(struct platform_device *dev)
100100
struct input_dev *pcspkr_dev = platform_get_drvdata(dev);
101101

102102
input_unregister_device(pcspkr_dev);
103-
platform_set_drvdata(dev, NULL);
104103
/* turn off the speaker */
105104
pcspkr_event(NULL, EV_SND, SND_BELL, 0);
106105

0 commit comments

Comments
 (0)