Skip to contentSkip to conversation

Input: wm831x-ts - Remove unneeded clearing of driver data

PATCH New Mark Brown 1 participant 1 message Jun 7, 2011

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/input/touchscreen/wm831x-ts.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/input/touchscreen/wm831x-ts.c +0 -1
index 9175d49..e5b63b9 100644
@@ -389,7 +389,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;
 }
 
Signature · 1 line
1.7.5.3