提交 b95dd03d 编写于 作者: D Devendra Naga 提交者: Greg Kroah-Hartman

staging/tidspbridge: use module_platform_driver

the code under _init and _exit does platform_driver_register and
platform_driver_unregister respectively only,

so its better to use the module_platform_driver than just replicating
the module_platform_driver's implementation
Signed-off-by: NDevendra Naga <develkernel412222@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0142919c
...@@ -613,16 +613,6 @@ static struct platform_driver bridge_driver = { ...@@ -613,16 +613,6 @@ static struct platform_driver bridge_driver = {
#endif #endif
}; };
static int __init bridge_init(void)
{
return platform_driver_register(&bridge_driver);
}
static void __exit bridge_exit(void)
{
platform_driver_unregister(&bridge_driver);
}
/* To remove all process resources before removing the process from the /* To remove all process resources before removing the process from the
* process context list */ * process context list */
int drv_remove_all_resources(void *process_ctxt) int drv_remove_all_resources(void *process_ctxt)
...@@ -636,6 +626,4 @@ int drv_remove_all_resources(void *process_ctxt) ...@@ -636,6 +626,4 @@ int drv_remove_all_resources(void *process_ctxt)
return status; return status;
} }
/* Bridge driver initialization and de-initialization functions */ module_platform_driver(bridge_driver);
module_init(bridge_init);
module_exit(bridge_exit);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册