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

index 5330d8fbf6c05a4d4c9e67d0a970beca8c3a076e..74e30cccbeab06c690b74291aa302203bdb9b0d0 100644 (file)
@@ -609,7 +609,6 @@ static int pxa27x_keypad_remove(struct platform_device *pdev)
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        release_mem_region(res->start, resource_size(res));
 
-       platform_set_drvdata(pdev, NULL);
        kfree(keypad);
 
        return 0;
This page took 0.024574 seconds and 5 git commands to generate.