Input: spear-keyboard - remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 6 May 2013 14:39:01 +0000 (07:39 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 8 May 2013 16:05:02 +0000 (09:05 -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/keyboard/spear-keyboard.c

index cb1e8f614631582b342546458d9c1fc462b55df7..7111124b53621de7c5de1df601f1d1fba6f8505f 100644 (file)
@@ -290,7 +290,6 @@ static int spear_kbd_remove(struct platform_device *pdev)
        clk_unprepare(kbd->clk);
 
        device_init_wakeup(&pdev->dev, 0);
-       platform_set_drvdata(pdev, NULL);
 
        return 0;
 }