mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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>
This commit is contained in:
parent
a790ebc1f0
commit
464cad2c50
1 changed files with 1 additions and 18 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue