diff options
Diffstat (limited to 'drivers/hid/usbhid')
-rw-r--r-- | drivers/hid/usbhid/hid-core.c | 1 | ||||
-rw-r--r-- | drivers/hid/usbhid/hiddev.c | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index 76c4bbe9dccb..3c1fcb7640ab 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <linux/list.h> | 22 | #include <linux/list.h> |
23 | #include <linux/mm.h> | 23 | #include <linux/mm.h> |
24 | #include <linux/mutex.h> | 24 | #include <linux/mutex.h> |
25 | #include <linux/smp_lock.h> | ||
26 | #include <linux/spinlock.h> | 25 | #include <linux/spinlock.h> |
27 | #include <asm/unaligned.h> | 26 | #include <asm/unaligned.h> |
28 | #include <asm/byteorder.h> | 27 | #include <asm/byteorder.h> |
diff --git a/drivers/hid/usbhid/hiddev.c b/drivers/hid/usbhid/hiddev.c index 39e27f4be4ac..215b2addddbb 100644 --- a/drivers/hid/usbhid/hiddev.c +++ b/drivers/hid/usbhid/hiddev.c | |||
@@ -852,8 +852,14 @@ static const struct file_operations hiddev_fops = { | |||
852 | #endif | 852 | #endif |
853 | }; | 853 | }; |
854 | 854 | ||
855 | static char *hiddev_nodename(struct device *dev) | ||
856 | { | ||
857 | return kasprintf(GFP_KERNEL, "usb/%s", dev_name(dev)); | ||
858 | } | ||
859 | |||
855 | static struct usb_class_driver hiddev_class = { | 860 | static struct usb_class_driver hiddev_class = { |
856 | .name = "hiddev%d", | 861 | .name = "hiddev%d", |
862 | .nodename = hiddev_nodename, | ||
857 | .fops = &hiddev_fops, | 863 | .fops = &hiddev_fops, |
858 | .minor_base = HIDDEV_MINOR_BASE, | 864 | .minor_base = HIDDEV_MINOR_BASE, |
859 | }; | 865 | }; |
@@ -957,7 +963,6 @@ static int hiddev_usbd_probe(struct usb_interface *intf, | |||
957 | return -ENODEV; | 963 | return -ENODEV; |
958 | } | 964 | } |
959 | 965 | ||
960 | |||
961 | static /* const */ struct usb_driver hiddev_driver = { | 966 | static /* const */ struct usb_driver hiddev_driver = { |
962 | .name = "hiddev", | 967 | .name = "hiddev", |
963 | .probe = hiddev_usbd_probe, | 968 | .probe = hiddev_usbd_probe, |