From: Mark Brown Date: Thu, 11 Oct 2012 07:42:24 +0000 (-0700) Subject: Input: wm831x-ts - remove unneeded clearing of driver data X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2f7badb9742f88e7307d9e823f40c8621ceaa1c4;p=linux-beck.git Input: wm831x-ts - remove unneeded clearing of driver data 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 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/wm831x-ts.c b/drivers/input/touchscreen/wm831x-ts.c index e83410721e38..ac667e469b35 100644 --- a/drivers/input/touchscreen/wm831x-ts.c +++ b/drivers/input/touchscreen/wm831x-ts.c @@ -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; }