diff options
Diffstat (limited to 'drivers/hid/hid-microsoft.c')
-rw-r--r-- | drivers/hid/hid-microsoft.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hid/hid-microsoft.c b/drivers/hid/hid-microsoft.c index 1fa8b813d441..d718b1607d0f 100644 --- a/drivers/hid/hid-microsoft.c +++ b/drivers/hid/hid-microsoft.c | |||
@@ -154,8 +154,6 @@ static int ms_probe(struct hid_device *hdev, const struct hid_device_id *id) | |||
154 | 154 | ||
155 | hid_set_drvdata(hdev, (void *)quirks); | 155 | hid_set_drvdata(hdev, (void *)quirks); |
156 | 156 | ||
157 | if (quirks & MS_HIDINPUT) | ||
158 | hdev->quirks |= HID_QUIRK_HIDINPUT; | ||
159 | if (quirks & MS_NOGET) | 157 | if (quirks & MS_NOGET) |
160 | hdev->quirks |= HID_QUIRK_NOGET; | 158 | hdev->quirks |= HID_QUIRK_NOGET; |
161 | 159 | ||
@@ -165,7 +163,8 @@ static int ms_probe(struct hid_device *hdev, const struct hid_device_id *id) | |||
165 | goto err_free; | 163 | goto err_free; |
166 | } | 164 | } |
167 | 165 | ||
168 | ret = hid_hw_start(hdev); | 166 | ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT | ((quirks & MS_HIDINPUT) ? |
167 | HID_CONNECT_HIDINPUT_FORCE : 0)); | ||
169 | if (ret) { | 168 | if (ret) { |
170 | dev_err(&hdev->dev, "hw start failed\n"); | 169 | dev_err(&hdev->dev, "hw start failed\n"); |
171 | goto err_free; | 170 | goto err_free; |