mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-27 08:05:27 +08:00
Input: elants_i2c - don't set wake_capable and wake_irq
The i2c-core will now handle setting the wake_irq and wake capability for DT and ACPI systems. Signed-off-by: Raul E Rangel <rrangel@chromium.org> Link: https://lore.kernel.org/r/20220929093200.v6.12.I031ffbe411e1bae20bf16a1876da5baf444c7928@changeid Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
1076fc5621
commit
44a87dd73b
@ -1564,22 +1564,6 @@ static int elants_i2c_probe(struct i2c_client *client)
|
||||
return error;
|
||||
}
|
||||
|
||||
/*
|
||||
* Systems using device tree should set up wakeup via DTS,
|
||||
* the rest will configure device as wakeup source by default.
|
||||
*/
|
||||
if (!client->dev.of_node)
|
||||
device_init_wakeup(&client->dev, true);
|
||||
|
||||
/*
|
||||
* The wake IRQ should be declared via device tree instead of assuming
|
||||
* the IRQ can wake the system. This is here for legacy reasons and
|
||||
* will be removed once the i2c-core supports querying ACPI for wake
|
||||
* capabilities.
|
||||
*/
|
||||
if (!client->dev.power.wakeirq)
|
||||
dev_pm_set_wake_irq(&client->dev, client->irq);
|
||||
|
||||
error = devm_device_add_group(&client->dev, &elants_attribute_group);
|
||||
if (error) {
|
||||
dev_err(&client->dev, "failed to create sysfs attributes: %d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user