Commit d0c082d1068751e80562d6f894e310d16a985645

Authored by Sachin Kamat
Committed by Dmitry Torokhov
1 parent 7bcbcaa584

Input: amikbd - 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>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

drivers/input/keyboard/amikbd.c
... ... @@ -246,7 +246,6 @@
246 246 {
247 247 struct input_dev *dev = platform_get_drvdata(pdev);
248 248  
249   - platform_set_drvdata(pdev, NULL);
250 249 free_irq(IRQ_AMIGA_CIAA_SP, dev);
251 250 input_unregister_device(dev);
252 251 return 0;