Commit 327c8b23 authored by Raul E Rangel's avatar Raul E Rangel Committed by Dmitry Torokhov
Browse files

HID: i2c-hid: Don't set wake_capable and wake_irq

parent 1796f808
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -1018,15 +1018,6 @@ int i2c_hid_core_probe(struct i2c_client *client, struct i2chid_ops *ops,
	if (ret < 0)
		goto err_powered;

	/*
	 * 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);

	hid = hid_allocate_device();
	if (IS_ERR(hid)) {
		ret = PTR_ERR(hid);