video: rockchip: fb: add parse screen physical size
[firefly-linux-kernel-4.4.55.git] / drivers / hid / hid-steelseries.c
index 29f328f411fb5454e03d46406c880fc9a5de0516..93ddc1c65b4ccee72c51a054928020420414c06d 100644 (file)
@@ -12,7 +12,6 @@
  */
 
 #include <linux/device.h>
-#include <linux/usb.h>
 #include <linux/hid.h>
 #include <linux/module.h>
 
@@ -254,6 +253,11 @@ static int steelseries_srws1_probe(struct hid_device *hdev,
                goto err_free;
        }
 
+       if (!hid_validate_values(hdev, HID_OUTPUT_REPORT, 0, 0, 16)) {
+               ret = -ENODEV;
+               goto err_free;
+       }
+
        ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
        if (ret) {
                hid_err(hdev, "hw start failed\n");