diff options
author | Geliang Tang <geliangtang@gmail.com> | 2016-11-15 10:58:35 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-03-23 14:40:09 -0300 |
commit | 855749a75609122b57b2d4ebd872944836388a14 (patch) | |
tree | 2f68e1558def5afc425646269cd3a8a828a35da5 /drivers/media/platform/soc_camera | |
parent | 54449af0e0b2ea43a8166611c95b730c850c3184 (diff) | |
download | op-kernel-dev-855749a75609122b57b2d4ebd872944836388a14.zip op-kernel-dev-855749a75609122b57b2d4ebd872944836388a14.tar.gz |
[media] sh_mobile_ceu_camera: use module_platform_driver
Use module_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/soc_camera')
-rw-r--r-- | drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c index a15bfb5..96dc017 100644 --- a/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c +++ b/drivers/media/platform/soc_camera/sh_mobile_ceu_camera.c @@ -1801,18 +1801,7 @@ static struct platform_driver sh_mobile_ceu_driver = { .remove = sh_mobile_ceu_remove, }; -static int __init sh_mobile_ceu_init(void) -{ - return platform_driver_register(&sh_mobile_ceu_driver); -} - -static void __exit sh_mobile_ceu_exit(void) -{ - platform_driver_unregister(&sh_mobile_ceu_driver); -} - -module_init(sh_mobile_ceu_init); -module_exit(sh_mobile_ceu_exit); +module_platform_driver(sh_mobile_ceu_driver); MODULE_DESCRIPTION("SuperH Mobile CEU driver"); MODULE_AUTHOR("Magnus Damm"); |