Input: at32psif - remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 6 May 2013 02:42:04 +0000 (19:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 6 May 2013 03:15:07 +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>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/at32psif.c

index 190ce35..3290b28 100644 (file)
@@ -314,8 +314,6 @@ static int __exit psif_remove(struct platform_device *pdev)
        clk_put(psif->pclk);
        kfree(psif);
 
-       platform_set_drvdata(pdev, NULL);
-
        return 0;
 }