diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2012-10-10 13:33:52 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-27 09:35:11 -0400 |
commit | 0e368f302e897b8a6a14191dfc66d92bc354014f (patch) | |
tree | 93f29109401940ade09ef825f942c08c00e98224 /drivers/media/platform/mx2_emmaprp.c | |
parent | 50509e5cfe6cb7dffde71a454c3266fbb55fbff1 (diff) |
[media] [3.6.0-,3/5] media/mx2_emmaprp: use module_platform_driver macro
This patch removes some code duplication by using
module_platform_driver.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/mx2_emmaprp.c')
-rw-r--r-- | drivers/media/platform/mx2_emmaprp.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/media/platform/mx2_emmaprp.c b/drivers/media/platform/mx2_emmaprp.c index 8f22ce543cf7..c45a9f5e5f2b 100644 --- a/drivers/media/platform/mx2_emmaprp.c +++ b/drivers/media/platform/mx2_emmaprp.c | |||
@@ -1013,16 +1013,4 @@ static struct platform_driver emmaprp_pdrv = { | |||
1013 | .owner = THIS_MODULE, | 1013 | .owner = THIS_MODULE, |
1014 | }, | 1014 | }, |
1015 | }; | 1015 | }; |
1016 | 1016 | module_platform_driver(emmaprp_pdrv); | |
1017 | static void __exit emmaprp_exit(void) | ||
1018 | { | ||
1019 | platform_driver_unregister(&emmaprp_pdrv); | ||
1020 | } | ||
1021 | |||
1022 | static int __init emmaprp_init(void) | ||
1023 | { | ||
1024 | return platform_driver_register(&emmaprp_pdrv); | ||
1025 | } | ||
1026 | |||
1027 | module_init(emmaprp_init); | ||
1028 | module_exit(emmaprp_exit); | ||