提交 6647b9c0 编写于 作者: S Sachin Kamat 提交者: Mauro Carvalho Chehab

[media] sh_veu: Use module_platform_driver_probe macro

module_platform_driver_probe() eliminates the boilerplate and simplifies
the code.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 bd3b4a3f
......@@ -1249,18 +1249,7 @@ static struct platform_driver __refdata sh_veu_pdrv = {
},
};
static int __init sh_veu_init(void)
{
return platform_driver_probe(&sh_veu_pdrv, sh_veu_probe);
}
static void __exit sh_veu_exit(void)
{
platform_driver_unregister(&sh_veu_pdrv);
}
module_init(sh_veu_init);
module_exit(sh_veu_exit);
module_platform_driver_probe(sh_veu_pdrv, sh_veu_probe);
MODULE_DESCRIPTION("sh-mobile VEU mem2mem driver");
MODULE_AUTHOR("Guennadi Liakhovetski, <g.liakhovetski@gmx.de>");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册