]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Input: xilinx_ps2 - remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 28 May 2013 06:40:33 +0000 (23:40 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 28 May 2013 07:57:48 +0000 (00:57 -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/xilinx_ps2.c

index 17be85948ffd850a3684531cdaa0fbd890634faa..4b7662a17ae90226bce968651f0a084f3c90826f 100644 (file)
@@ -349,8 +349,6 @@ static int xps2_of_remove(struct platform_device *of_dev)
 
        kfree(drvdata);
 
-       platform_set_drvdata(of_dev, NULL);
-
        return 0;
 }