Commit b3fd87bc authored by Sachin Kamat's avatar Sachin Kamat Committed by Mauro Carvalho Chehab

[media] sh_vou: Use module_platform_driver_probe macro

module_platform_driver_probe() eliminates the boilerplate and simplifies
the code.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6647b9c0
......@@ -1485,18 +1485,7 @@ static struct platform_driver __refdata sh_vou = {
},
};
static int __init sh_vou_init(void)
{
return platform_driver_probe(&sh_vou, sh_vou_probe);
}
static void __exit sh_vou_exit(void)
{
platform_driver_unregister(&sh_vou);
}
module_init(sh_vou_init);
module_exit(sh_vou_exit);
module_platform_driver_probe(sh_vou, sh_vou_probe);
MODULE_DESCRIPTION("SuperH VOU driver");
MODULE_AUTHOR("Guennadi Liakhovetski <g.liakhovetski@gmx.de>");
......
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