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
1 changed files with 4 additions and 1 deletions

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)