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

index 829753702b629dba6ae8081d3b6d409846e80919..d15977a8361ea5b007fa19e3a653600252a99cbd 100644 (file)
@@ -314,8 +314,6 @@ static int davinci_ks_remove(struct platform_device *pdev)
        iounmap(davinci_ks->base);
        release_mem_region(davinci_ks->pbase, davinci_ks->base_size);
 
-       platform_set_drvdata(pdev, NULL);
-
        kfree(davinci_ks);
 
        return 0;
This page took 0.025061 seconds and 5 git commands to generate.