Input: q40kbd - remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 6 May 2013 02:42:33 +0000 (19:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 6 May 2013 03:15:11 +0000 (20:15 -0700)
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>
drivers/input/serio/q40kbd.c

index 436a3433f8e55e5a3dedcb111614e74d928cbb3e..7a65a1bc5226ddabfd558b98545fb81085d16519 100644 (file)
@@ -181,7 +181,6 @@ static int q40kbd_remove(struct platform_device *pdev)
        free_irq(Q40_IRQ_KEYBOARD, q40kbd);
        kfree(q40kbd);
 
-       platform_set_drvdata(pdev, NULL);
        return 0;
 }