[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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
Wei Yongjun 2013-10-30 00:09:44 -03:00 committed by Mauro Carvalho Chehab
parent 356ba0213d
commit 903cbb83d2
1 changed files with 1 additions and 12 deletions

View File

@ -2081,18 +2081,7 @@ static struct platform_driver vpe_pdrv = {
},
};
static void __exit vpe_exit(void)
{
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_platform_driver(vpe_pdrv);
MODULE_DESCRIPTION("TI VPE driver");
MODULE_AUTHOR("Dale Farnsworth, <dale@farnsworth.org>");