Commit 66b0f52c1ee8a88c54e150352995d53832e78d43

Authored by Sachin Kamat
Committed by Dmitry Torokhov
1 parent 3c02d66b32

Input: amimouse - remove redundant platform_set_drvdata()

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>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

drivers/input/mouse/amimouse.c
... ... @@ -133,7 +133,6 @@
133 133 {
134 134 struct input_dev *dev = platform_get_drvdata(pdev);
135 135  
136   - platform_set_drvdata(pdev, NULL);
137 136 input_unregister_device(dev);
138 137 return 0;
139 138 }