diff options
Diffstat (limited to 'drivers/hid/hid-picolcd.c')
-rw-r--r-- | drivers/hid/hid-picolcd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/hid/hid-picolcd.c b/drivers/hid/hid-picolcd.c index 45c3433f7986..27c8ebdfad01 100644 --- a/drivers/hid/hid-picolcd.c +++ b/drivers/hid/hid-picolcd.c | |||
@@ -1846,7 +1846,7 @@ static void picolcd_debug_out_report(struct picolcd_data *data, | |||
1846 | #define BUFF_SZ 256 | 1846 | #define BUFF_SZ 256 |
1847 | 1847 | ||
1848 | /* Avoid unnecessary overhead if debugfs is disabled */ | 1848 | /* Avoid unnecessary overhead if debugfs is disabled */ |
1849 | if (!hdev->debug_events) | 1849 | if (list_empty(&hdev->debug_list)) |
1850 | return; | 1850 | return; |
1851 | 1851 | ||
1852 | buff = kmalloc(BUFF_SZ, GFP_ATOMIC); | 1852 | buff = kmalloc(BUFF_SZ, GFP_ATOMIC); |
@@ -2613,11 +2613,7 @@ static int picolcd_probe(struct hid_device *hdev, | |||
2613 | goto err_cleanup_data; | 2613 | goto err_cleanup_data; |
2614 | } | 2614 | } |
2615 | 2615 | ||
2616 | /* We don't use hidinput but hid_hw_start() fails if nothing is | ||
2617 | * claimed. So spoof claimed input. */ | ||
2618 | hdev->claimed = HID_CLAIMED_INPUT; | ||
2619 | error = hid_hw_start(hdev, 0); | 2616 | error = hid_hw_start(hdev, 0); |
2620 | hdev->claimed = 0; | ||
2621 | if (error) { | 2617 | if (error) { |
2622 | hid_err(hdev, "hardware start failed\n"); | 2618 | hid_err(hdev, "hardware start failed\n"); |
2623 | goto err_cleanup_data; | 2619 | goto err_cleanup_data; |