Commit 903cbb83 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mauro Carvalho Chehab

[media] v4l: ti-vpe: use module_platform_driver to simplify the code

module_platform_driver() makes the code simpler by eliminating
boilerplate code.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 356ba021
...@@ -2081,18 +2081,7 @@ static struct platform_driver vpe_pdrv = { ...@@ -2081,18 +2081,7 @@ static struct platform_driver vpe_pdrv = {
}, },
}; };
static void __exit vpe_exit(void) module_platform_driver(vpe_pdrv);
{
platform_driver_unregister(&vpe_pdrv);
}
static int __init vpe_init(void)
{
return platform_driver_register(&vpe_pdrv);
}
module_init(vpe_init);
module_exit(vpe_exit);
MODULE_DESCRIPTION("TI VPE driver"); MODULE_DESCRIPTION("TI VPE driver");
MODULE_AUTHOR("Dale Farnsworth, <dale@farnsworth.org>"); MODULE_AUTHOR("Dale Farnsworth, <dale@farnsworth.org>");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment