Commit 8cd16166 authored by Benjamin Tissoires's avatar Benjamin Tissoires Committed by Jiri Kosina

HID: fix missing irq field

commit ba18a931 ("Revert "HID: i2c-hid: Add support for ACPI GPIO
interrupts"") removed the need for storing the irq in struct i2c_hid.

But then commit de3c99488609 ("HID: i2c-hid: Disable IRQ before freeing
buffers") forgot to update the location of the irq.

Fix this by using the actual I2C client irq.
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent ba1660f1
...@@ -770,11 +770,11 @@ static int i2c_hid_start(struct hid_device *hid) ...@@ -770,11 +770,11 @@ static int i2c_hid_start(struct hid_device *hid)
i2c_hid_find_max_report(hid, HID_FEATURE_REPORT, &bufsize); i2c_hid_find_max_report(hid, HID_FEATURE_REPORT, &bufsize);
if (bufsize > ihid->bufsize) { if (bufsize > ihid->bufsize) {
disable_irq(ihid->irq); disable_irq(client->irq);
i2c_hid_free_buffers(ihid); i2c_hid_free_buffers(ihid);
ret = i2c_hid_alloc_buffers(ihid, bufsize); ret = i2c_hid_alloc_buffers(ihid, bufsize);
enable_irq(ihid->irq); enable_irq(client->irq);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment