We allow hidraw to be loaded on wiimote devices but if a kernel is compiled without hidraw, calling hid_hw_start() will always fail as no driver claims the device. Therefore, we now explicitly set HID_CLAIMED_OTHER so the hid-core will allow loading the device even if no generic driver claimed it. The wiimote driver will correctly handle the device, anyway. Signed-off-by: David Herrmann <dh.herrmann@xxxxxxxxxxxxxx> --- drivers/hid/hid-wiimote-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c index 84e2fbe..39154ff9 100644 --- a/drivers/hid/hid-wiimote-core.c +++ b/drivers/hid/hid-wiimote-core.c @@ -1189,6 +1189,7 @@ static int wiimote_hid_probe(struct hid_device *hdev, goto err; } + hdev->claimed |= HID_CLAIMED_OTHER; ret = hid_hw_start(hdev, HID_CONNECT_HIDRAW); if (ret) { hid_err(hdev, "HW start failed\n"); -- 1.7.11.2 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html