projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
media: dt-bindings: Add regulator to dw9807-vcm
[platform/kernel/linux-rpi.git]
/
drivers
/
hid
/
hid-roccat-pyra.c
diff --git
a/drivers/hid/hid-roccat-pyra.c
b/drivers/hid/hid-roccat-pyra.c
index
989927d
..
4fcc8e7
100644
(file)
--- a/
drivers/hid/hid-roccat-pyra.c
+++ b/
drivers/hid/hid-roccat-pyra.c
@@
-449,6
+449,9
@@
static int pyra_probe(struct hid_device *hdev, const struct hid_device_id *id)
{
int retval;
+ if (!hid_is_usb(hdev))
+ return -EINVAL;
+
retval = hid_parse(hdev);
if (retval) {
hid_err(hdev, "parse failed\n");