diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-27 07:16:27 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-27 16:48:32 -0500 |
commit | cc27c96c2bee93068bfc60ea6b09611d88cef429 (patch) | |
tree | 47068da713ecb9f9383b3538831d0d3f3d170460 /drivers/usb/renesas_usbhs/common.c | |
parent | c64391f264b7658c00515173cca58f5b054af1a2 (diff) |
usb: convert drivers/usb/* to use module_platform_driver()
This patch converts the drivers in drivers/usb/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Cc: Felipe Balbi <balbi@ti.com>
Cc: Li Yang <leoli@freescale.com>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/renesas_usbhs/common.c')
-rw-r--r-- | drivers/usb/renesas_usbhs/common.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 08c679c0dde5..aa94e33e6885 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c | |||
@@ -637,18 +637,7 @@ static struct platform_driver renesas_usbhs_driver = { | |||
637 | .remove = __devexit_p(usbhs_remove), | 637 | .remove = __devexit_p(usbhs_remove), |
638 | }; | 638 | }; |
639 | 639 | ||
640 | static int __init usbhs_init(void) | 640 | module_platform_driver(renesas_usbhs_driver); |
641 | { | ||
642 | return platform_driver_register(&renesas_usbhs_driver); | ||
643 | } | ||
644 | |||
645 | static void __exit usbhs_exit(void) | ||
646 | { | ||
647 | platform_driver_unregister(&renesas_usbhs_driver); | ||
648 | } | ||
649 | |||
650 | module_init(usbhs_init); | ||
651 | module_exit(usbhs_exit); | ||
652 | 641 | ||
653 | MODULE_LICENSE("GPL"); | 642 | MODULE_LICENSE("GPL"); |
654 | MODULE_DESCRIPTION("Renesas USB driver"); | 643 | MODULE_DESCRIPTION("Renesas USB driver"); |