{
struct hid_device *hid = ptr;
+ dbg("cleanup called");
usb_unlink_urb(hid->urbin);
usb_unlink_urb(hid->urbout);
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->urbctrl);
if (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);
}
#if 0
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