diff options
-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 ee0094d..ce1b95b 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"); |