Merge branch 'for-5.11/i2c-hid' into for-linus

- error reporting fix from Coiby Xu
This commit is contained in:
Jiri Kosina 2020-12-16 11:42:01 +01:00
commit 19a0b6d79c

View file

@ -1106,8 +1106,11 @@ static int i2c_hid_probe(struct i2c_client *client,
}
ret = i2c_hid_fetch_hid_descriptor(ihid);
if (ret < 0)
if (ret < 0) {
dev_err(&client->dev,
"Failed to fetch the HID Descriptor\n");
goto err_regulator;
}
ret = i2c_hid_init_irq(client);
if (ret < 0)