diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-06-23 11:55:32 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-26 20:59:02 -0400 |
commit | 464cad2c50ece09be0fd9e21799a749d6aadfda5 (patch) | |
tree | 0fb1be14ef160295438a16c417dc36586b99e88f /drivers/staging/emxx_udc | |
parent | a790ebc1f0189bf80bdde03b427e7da7fd3c62f7 (diff) | |
download | linux-464cad2c50ece09be0fd9e21799a749d6aadfda5.tar.gz linux-464cad2c50ece09be0fd9e21799a749d6aadfda5.tar.bz2 linux-464cad2c50ece09be0fd9e21799a749d6aadfda5.zip |
staging: emxx_udc: Use module_platform_driver
module_platform_driver removes some boiler plate and makes
code simpler.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/emxx_udc')
-rw-r--r-- | drivers/staging/emxx_udc/emxx_udc.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index ee0094d8cc6e..ce1b95b0abfc 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -3511,24 +3511,7 @@ static struct platform_driver udc_driver = { }, }; - - -/*-------------------------------------------------------------------------*/ -/* module */ - -/*-------------------------------------------------------------------------*/ -static int __init udc_init(void) -{ - return platform_driver_register(&udc_driver); -} -module_init(udc_init); - -/*-------------------------------------------------------------------------*/ -static void __exit udc_exit(void) -{ - platform_driver_unregister(&udc_driver); -} -module_exit(udc_exit); +module_platform_driver(udc_driver); MODULE_DESCRIPTION(DRIVER_DESC); MODULE_AUTHOR("Renesas Electronics Corporation"); |