Commit 4601de80 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

USB: storage: convert to use module_usb_driver()

Now that Joe cleaned up the init/exit functions, we can just get rid of
them entirely and use the proper macro that almost all other USB drivers
now use.

Cc: Matthew Dharm <>
Cc: Joe Perches <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 191648d0
......@@ -1071,10 +1071,6 @@ static int storage_probe(struct usb_interface *intf,
return result;
* Initialization and registration
static struct usb_driver usb_storage_driver = {
.name = "usb-storage",
.probe = storage_probe,
......@@ -1089,28 +1085,4 @@ static struct usb_driver usb_storage_driver = {
.soft_unbind = 1,
static int __init usb_stor_init(void)
int retval;
pr_info("Initializing USB Mass Storage driver...\n");
/* register the driver, return usb_register return code if error */
retval = usb_register(&usb_storage_driver);
if (retval == 0)
pr_info("USB Mass Storage support registered\n");
return retval;
static void __exit usb_stor_exit(void)
/* Deregister the driver
* This will cause disconnect() to be called for each
* attached unit
pr_info("Deregistering USB Mass Storage driver...\n");
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