[media] sh_veu: Use module_platform_driver_probe macro

module_platform_driver_probe() eliminates the boilerplate and simplifies
the code.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Sachin Kamat 2013-03-05 01:53:36 -03:00 committed by Mauro Carvalho Chehab
parent bd3b4a3fde
commit 6647b9c003
1 changed files with 1 additions and 12 deletions

View File

@ -1249,18 +1249,7 @@ static struct platform_driver __refdata sh_veu_pdrv = {
}, },
}; };
static int __init sh_veu_init(void) module_platform_driver_probe(sh_veu_pdrv, sh_veu_probe);
{
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_DESCRIPTION("sh-mobile VEU mem2mem driver"); MODULE_DESCRIPTION("sh-mobile VEU mem2mem driver");
MODULE_AUTHOR("Guennadi Liakhovetski, <g.liakhovetski@gmx.de>"); MODULE_AUTHOR("Guennadi Liakhovetski, <g.liakhovetski@gmx.de>");