Skip to content

Commit

Permalink
Input: wm831x-ts - remove unneeded clearing of driver data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and Dmitry Torokhov committed Oct 11, 2012
1 parent 24e491c commit 2f7badb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/input/touchscreen/wm831x-ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2f7badb

Please sign in to comment.