]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Input: misc - drop unnecessary calls to device_init_wakeup
authorGuenter Roeck <linux@roeck-us.net>
Sun, 22 Jan 2017 07:48:45 +0000 (23:48 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 22 Jan 2017 07:53:21 +0000 (23:53 -0800)
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>
drivers/input/misc/88pm80x_onkey.c
drivers/input/misc/e3x0-button.c
drivers/input/misc/gp2ap002a00f.c
drivers/input/misc/hisi_powerkey.c
drivers/input/misc/pm8941-pwrkey.c
drivers/input/misc/pmic8xxx-pwrkey.c
drivers/input/misc/sirfsoc-onkey.c

index cf9908f1e5d5be758fa65d31dbe5577acdf6e295..45a09497f68098cb8179e4cc1bcb38e21c274df8 100644 (file)
@@ -143,7 +143,6 @@ static int pm80x_onkey_remove(struct platform_device *pdev)
 {
        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);
index b0b374112db3d133fa6d5845db2b24f0acd75ec3..1e50314db1ab87ed454b614effd344b2d1550b7a 100644 (file)
@@ -126,7 +126,6 @@ static int e3x0_button_probe(struct platform_device *pdev)
 
 static int e3x0_button_remove(struct platform_device *pdev)
 {
-       device_init_wakeup(&pdev->dev, 0);
        return 0;
 }
 
index 3bfdfcc2048519bb18822908a696ef8838ef6360..c6a29e57b5e493807d93dfe161ea78e362cca7da 100644 (file)
@@ -210,8 +210,6 @@ static int gp2a_remove(struct i2c_client *client)
        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);
index c4c42124a059af94c9fe0ab2ca28ce6e2cf95638..baa81dccfc1fad1bea14a7c417041f0c38229a7a 100644 (file)
@@ -122,8 +122,6 @@ static int hi65xx_powerkey_probe(struct platform_device *pdev)
 
 static int hi65xx_powerkey_remove(struct platform_device *pdev)
 {
-       device_init_wakeup(&pdev->dev, 0);
-
        return 0;
 }
 
index e317b75357a0182d99ef3c04223596bd1de6fc80..18ad956454f1e4819d0c5aede7925012e51be22e 100644 (file)
@@ -266,7 +266,6 @@ static int pm8941_pwrkey_remove(struct platform_device *pdev)
 {
        struct pm8941_pwrkey *pwrkey = platform_get_drvdata(pdev);
 
-       device_init_wakeup(&pdev->dev, 0);
        unregister_reboot_notifier(&pwrkey->reboot_notifier);
 
        return 0;
index 67aab86048ad73faa1f1af16c1ae1663cf4500f1..c75be2dd00e767f9b5172e99705e788214900f6e 100644 (file)
@@ -440,8 +440,6 @@ static int pmic8xxx_pwrkey_probe(struct platform_device *pdev)
 
 static int pmic8xxx_pwrkey_remove(struct platform_device *pdev)
 {
-       device_init_wakeup(&pdev->dev, 0);
-
        return 0;
 }
 
index ed7237f1953966c378c3822faa9a40f7c6a044dd..a2ed0e4fcd0b3f9fc988cbc40cb164c465a2bf06 100644 (file)
@@ -174,8 +174,6 @@ static int sirfsoc_pwrc_probe(struct platform_device *pdev)
 
 static int sirfsoc_pwrc_remove(struct platform_device *pdev)
 {
-       device_init_wakeup(&pdev->dev, 0);
-
        return 0;
 }