Skip to content

Commit

Permalink
Merge branch 'for-5.11/i2c-hid' into for-linus
Browse files Browse the repository at this point in the history
- error reporting fix from Coiby Xu
  • Loading branch information
Jiri Kosina committed Dec 16, 2020
2 parents e77bc7d + afdd34c commit 19a0b6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/hid/i2c-hid/i2c-hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 19a0b6d

Please sign in to comment.