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

index d2ef8f05c66ec968b382c054861db1b3e49d0ae9..003d0c3b5d08f091a32f97e401e83b59550de9a6 100644 (file)
@@ -318,8 +318,6 @@ static int w90x900ts_remove(struct platform_device *pdev)
        input_unregister_device(w90p910_ts->input);
        kfree(w90p910_ts);
 
-       platform_set_drvdata(pdev, NULL);
-
        return 0;
 }