From: Sachin Kamat Date: Mon, 6 May 2013 14:39:01 +0000 (-0700) Subject: Input: spear-keyboard - remove redundant platform_set_drvdata() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=e78465ed1f2c0f1012d0cb6a9fb9b9a25e4b8c4d;p=deliverable%2Flinux.git Input: spear-keyboard - 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 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/spear-keyboard.c b/drivers/input/keyboard/spear-keyboard.c index cb1e8f614631..7111124b5362 100644 --- a/drivers/input/keyboard/spear-keyboard.c +++ b/drivers/input/keyboard/spear-keyboard.c @@ -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; }