Input: ti_am335x_tsc - remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 6 May 2013 02:41:05 +0000 (19:41 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 6 May 2013 03:14:56 +0000 (20:14 -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/touchscreen/ti_am335x_tsc.c

index 51e7b87827a45ff0bd1c5335d2dc7b7b0ce70d8a..50fb1293874e56053435f55a312b7e869ddfb6f8 100644 (file)
@@ -336,7 +336,6 @@ static int titsc_remove(struct platform_device *pdev)
 
        input_unregister_device(ts_dev->input);
 
-       platform_set_drvdata(pdev, NULL);
        kfree(ts_dev);
        return 0;
 }