mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
HID: picolcd_core: Remove setting hdev->claimed before calling hid_hw_start()
Current implementation of hid_hw_start() allows connect_mask to be 0. Setting hdev->claimed = HID_CLAIMED_INPUT before calling hid_hw_start() is not necessary. Remove it. Signed-off-by: Axel Lin <[email protected]> Acked-By: Bruno Prémont <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
bb5c32d998
commit
206e3f1cda
1 changed files with 0 additions and 4 deletions
|
|
@ -565,11 +565,7 @@ static int picolcd_probe(struct hid_device *hdev,
|
|||
goto err_cleanup_data;
|
||||
}
|
||||
|
||||
/* We don't use hidinput but hid_hw_start() fails if nothing is
|
||||
* claimed. So spoof claimed input. */
|
||||
hdev->claimed = HID_CLAIMED_INPUT;
|
||||
error = hid_hw_start(hdev, 0);
|
||||
hdev->claimed = 0;
|
||||
if (error) {
|
||||
hid_err(hdev, "hardware start failed\n");
|
||||
goto err_cleanup_data;
|
||||
|
|
|
|||
Loading…
Reference in a new issue