diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2012-10-10 21:33:52 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-27 17:35:11 +0400 |
commit | 0e368f302e897b8a6a14191dfc66d92bc354014f (patch) | |
tree | 93f29109401940ade09ef825f942c08c00e98224 /drivers/media/platform/mx2_emmaprp.c | |
parent | 50509e5cfe6cb7dffde71a454c3266fbb55fbff1 (diff) | |
download | linux-0e368f302e897b8a6a14191dfc66d92bc354014f.tar.xz |
[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 = { .owner = THIS_MODULE, }, }; - -static void __exit emmaprp_exit(void) -{ - platform_driver_unregister(&emmaprp_pdrv); -} - -static int __init emmaprp_init(void) -{ - return platform_driver_register(&emmaprp_pdrv); -} - -module_init(emmaprp_init); -module_exit(emmaprp_exit); +module_platform_driver(emmaprp_pdrv); |