Input: wm831x-ts - remove unneeded clearing of driver data
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 11 Oct 2012 07:42:24 +0000 (00:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 11 Oct 2012 07:48:58 +0000 (00:48 -0700)
This is unneeded, only a bound driver can use driver data and a driver
relying on the state prior to probe() is buggy.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/wm831x-ts.c

index e834107..ac667e4 100644 (file)
@@ -390,7 +390,6 @@ static __devexit int wm831x_ts_remove(struct platform_device *pdev)
        input_unregister_device(wm831x_ts->input_dev);
        kfree(wm831x_ts);
 
-       platform_set_drvdata(pdev, NULL);
        return 0;
 }