diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-04 23:53:36 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-21 13:35:39 -0400 |
commit | 6647b9c003f3c5de786a6eeb6c91b9481e543382 (patch) | |
tree | fed149e005c011519a9476aea8e07ccd468b47f2 /drivers/media/platform/sh_veu.c | |
parent | bd3b4a3fde243d2870c703ed92c86d7026517569 (diff) |
[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>
Diffstat (limited to 'drivers/media/platform/sh_veu.c')
-rw-r--r-- | drivers/media/platform/sh_veu.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/platform/sh_veu.c b/drivers/media/platform/sh_veu.c index 362d88ec6ea1..0b32cc3f6a47 100644 --- a/drivers/media/platform/sh_veu.c +++ b/drivers/media/platform/sh_veu.c | |||
@@ -1249,18 +1249,7 @@ static struct platform_driver __refdata sh_veu_pdrv = { | |||
1249 | }, | 1249 | }, |
1250 | }; | 1250 | }; |
1251 | 1251 | ||
1252 | static int __init sh_veu_init(void) | 1252 | module_platform_driver_probe(sh_veu_pdrv, sh_veu_probe); |
1253 | { | ||
1254 | return platform_driver_probe(&sh_veu_pdrv, sh_veu_probe); | ||
1255 | } | ||
1256 | |||
1257 | static void __exit sh_veu_exit(void) | ||
1258 | { | ||
1259 | platform_driver_unregister(&sh_veu_pdrv); | ||
1260 | } | ||
1261 | |||
1262 | module_init(sh_veu_init); | ||
1263 | module_exit(sh_veu_exit); | ||
1264 | 1253 | ||
1265 | MODULE_DESCRIPTION("sh-mobile VEU mem2mem driver"); | 1254 | MODULE_DESCRIPTION("sh-mobile VEU mem2mem driver"); |
1266 | MODULE_AUTHOR("Guennadi Liakhovetski, <g.liakhovetski@gmx.de>"); | 1255 | MODULE_AUTHOR("Guennadi Liakhovetski, <g.liakhovetski@gmx.de>"); |