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>
{
struct pm80x_onkey_info *info = platform_get_drvdata(pdev);
- device_init_wakeup(&pdev->dev, 0);
pm80x_free_irq(info->pm80x, info->irq, info);
input_unregister_device(info->idev);
kfree(info);
static int e3x0_button_remove(struct platform_device *pdev)
{
- device_init_wakeup(&pdev->dev, 0);
return 0;
}
struct gp2a_data *dt = i2c_get_clientdata(client);
const struct gp2a_platform_data *pdata = dt->pdata;
- device_init_wakeup(&client->dev, false);
-
free_irq(client->irq, dt);
input_unregister_device(dt->input);
static int hi65xx_powerkey_remove(struct platform_device *pdev)
{
- device_init_wakeup(&pdev->dev, 0);
-
return 0;
}
{
struct pm8941_pwrkey *pwrkey = platform_get_drvdata(pdev);
- device_init_wakeup(&pdev->dev, 0);
unregister_reboot_notifier(&pwrkey->reboot_notifier);
return 0;
static int pmic8xxx_pwrkey_remove(struct platform_device *pdev)
{
- device_init_wakeup(&pdev->dev, 0);
-
return 0;
}
static int sirfsoc_pwrc_remove(struct platform_device *pdev)
{
- device_init_wakeup(&pdev->dev, 0);
-
return 0;
}