Commit 7c1bce85 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB

minor -dj tree updates.
parent 6a3cd6f1
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
*/ */
#include <linux/list.h> #include <linux/list.h>
#include <linux/compiler.h> /* likely()/unlikely() */
/* /*
* Hub request types * Hub request types
......
...@@ -1477,20 +1477,20 @@ static void hid_disconnect(struct usb_device *dev, void *ptr) ...@@ -1477,20 +1477,20 @@ static void hid_disconnect(struct usb_device *dev, void *ptr)
{ {
struct hid_device *hid = ptr; struct hid_device *hid = ptr;
dbg("cleanup called");
usb_unlink_urb(hid->urbin); usb_unlink_urb(hid->urbin);
usb_unlink_urb(hid->urbout); usb_unlink_urb(hid->urbout);
usb_unlink_urb(hid->urbctrl); usb_unlink_urb(hid->urbctrl);
if (hid->claimed & HID_CLAIMED_INPUT)
hidinput_disconnect(hid);
if (hid->claimed & HID_CLAIMED_HIDDEV)
hiddev_disconnect(hid);
usb_free_urb(hid->urbin); usb_free_urb(hid->urbin);
usb_free_urb(hid->urbctrl); usb_free_urb(hid->urbctrl);
if (hid->urbout) if (hid->urbout)
usb_free_urb(hid->urbout); usb_free_urb(hid->urbout);
if (hid->claimed & HID_CLAIMED_INPUT)
hidinput_disconnect(hid);
if (hid->claimed & HID_CLAIMED_HIDDEV)
hiddev_disconnect(hid);
hid_free_device(hid); hid_free_device(hid);
} }
......
...@@ -1665,7 +1665,7 @@ EXPORT_SYMBOL(usb_serial_deregister); ...@@ -1665,7 +1665,7 @@ EXPORT_SYMBOL(usb_serial_deregister);
#if 0 #if 0
static kdev_t usb_console_device(struct console *co) static kdev_t usb_console_device(struct console *co)
{ {
return MKDEV(SERIAL_TTY_MAJOR, co->index); /* TBD */ return mk_kdev(SERIAL_TTY_MAJOR, co->index); /* TBD */
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment