I2C core will set up device as a wakeup source and will configure interrupt
as a wakeup interrupt if client is created with I2C_CLIENT_WAKE flag. Let's
rely on this facility and to not unconditionally set up the device as
wakeup device in the driver.
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Link: https://lore.kernel.org/r/20220528045631.289821-4-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
 
        if (error)
                return error;
 
-       device_init_wakeup(&client->dev, 1);
-
        dev_info(&client->dev, "Rev.%d keypad, irq %d\n", revid, client->irq);
        return 0;
 }
 
        disable_irq(client->irq);
 
-       if (device_may_wakeup(&client->dev))
-               enable_irq_wake(client->irq);
-
        return 0;
 }
 
 {
        struct i2c_client *client = to_i2c_client(dev);
 
-       if (device_may_wakeup(&client->dev))
-               disable_irq_wake(client->irq);
-
        enable_irq(client->irq);
 
        return 0;