]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/host/hwa-hc.c
USB: EHCI: Don't use NO_IRQ in xilinx ehci driver
[~andy/linux] / drivers / usb / host / hwa-hc.c
index 565d79f06e6f0a64c69071931b69e92c8cc829b0..104730dabd2d59f44ab8c0f4a8da7e538d111792 100644 (file)
@@ -481,7 +481,7 @@ static int __hwahc_op_set_ptk(struct wusbhc *wusbhc, u8 port_idx, u32 tkid,
                encryption_value = 0;
        }
 
-       /* Set the encryption type for commmunicating with the device */
+       /* Set the encryption type for communicating with the device */
        result = usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0),
                        USB_REQ_SET_ENCRYPTION,
                        USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE,
@@ -836,18 +836,7 @@ static struct usb_driver hwahc_driver = {
        .id_table =     hwahc_id_table,
 };
 
-static int __init hwahc_driver_init(void)
-{
-       return usb_register(&hwahc_driver);
-}
-module_init(hwahc_driver_init);
-
-static void __exit hwahc_driver_exit(void)
-{
-       usb_deregister(&hwahc_driver);
-}
-module_exit(hwahc_driver_exit);
-
+module_usb_driver(hwahc_driver);
 
 MODULE_AUTHOR("Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>");
 MODULE_DESCRIPTION("Host Wired Adapter USB Host Control Driver");