diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2012-02-28 06:57:20 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-02 19:20:28 -0500 |
commit | b1116dcc63a91ee79a122abea025aab15ea2c8e7 (patch) | |
tree | 8cb56887db518d984c98f66ca15fc4637f328479 /drivers/usb/dwc3 | |
parent | a5360a53a7ccad5ed9ccef210b94fef13c6e5529 (diff) |
usb: dwc3: core: Convert to module_platform_driver
Use the module_platform_driver macro.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/core.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index fd6917b8d0d7..7bd815a507e8 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c | |||
@@ -597,19 +597,9 @@ static struct platform_driver dwc3_driver = { | |||
597 | }, | 597 | }, |
598 | }; | 598 | }; |
599 | 599 | ||
600 | module_platform_driver(dwc3_driver); | ||
601 | |||
600 | MODULE_ALIAS("platform:dwc3"); | 602 | MODULE_ALIAS("platform:dwc3"); |
601 | MODULE_AUTHOR("Felipe Balbi <balbi@ti.com>"); | 603 | MODULE_AUTHOR("Felipe Balbi <balbi@ti.com>"); |
602 | MODULE_LICENSE("Dual BSD/GPL"); | 604 | MODULE_LICENSE("Dual BSD/GPL"); |
603 | MODULE_DESCRIPTION("DesignWare USB3 DRD Controller Driver"); | 605 | MODULE_DESCRIPTION("DesignWare USB3 DRD Controller Driver"); |
604 | |||
605 | static int __devinit dwc3_init(void) | ||
606 | { | ||
607 | return platform_driver_register(&dwc3_driver); | ||
608 | } | ||
609 | module_init(dwc3_init); | ||
610 | |||
611 | static void __exit dwc3_exit(void) | ||
612 | { | ||
613 | platform_driver_unregister(&dwc3_driver); | ||
614 | } | ||
615 | module_exit(dwc3_exit); | ||