diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-01-21 23:49:13 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-21 23:53:30 -0800 |
commit | 8e1b4d83cf8b0e62f5a45792d07f027783c1a07c (patch) | |
tree | 43b63f8c2430314ccb2220b671d13bc8916f4635 /drivers/input/touchscreen/lpc32xx_ts.c | |
parent | 56580c2cb7d72e2176136b8146bcc6a527d8ac38 (diff) | |
download | linux-8e1b4d83cf8b0e62f5a45792d07f027783c1a07c.tar.gz |
Input: touchscreen - drop unnecessary calls to device_init_wakeup
Calling device_init_wakeup in the remove function is unnecessary since the
device is going away, and thus won't be able to cause any wakeups under any
circumstances. Besides, the driver cleanup code already handles the
necessary cleanup.
Similarly, disabling wakeup in the probe error path is unnecessary, as is
disabling wakeup in the probe function in the first place.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/lpc32xx_ts.c')
-rw-r--r-- | drivers/input/touchscreen/lpc32xx_ts.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/lpc32xx_ts.c b/drivers/input/touchscreen/lpc32xx_ts.c index 7fbb3b0c8571..e0baa7de4102 100644 --- a/drivers/input/touchscreen/lpc32xx_ts.c +++ b/drivers/input/touchscreen/lpc32xx_ts.c @@ -313,7 +313,6 @@ static int lpc32xx_ts_remove(struct platform_device *pdev) struct lpc32xx_tsc *tsc = platform_get_drvdata(pdev); struct resource *res; - device_init_wakeup(&pdev->dev, 0); free_irq(tsc->irq, tsc); input_unregister_device(tsc->dev); |