Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364881
b: refs/heads/master
c: 4601de8
h: refs/heads/master
i:
  364879: 05e1e39
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 19, 2013
1 parent 08467db commit 4235c50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 191648d03d20229523d9a75b8abef56421298d28
refs/heads/master: 4601de807d7755aabd35faf5e15ae233241b8582
30 changes: 1 addition & 29 deletions trunk/drivers/usb/storage/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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");
usb_deregister(&usb_storage_driver);
}

module_init(usb_stor_init);
module_exit(usb_stor_exit);
module_usb_driver(usb_storage_driver);

0 comments on commit 4235c50

Please sign in to comment.