summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/m2m-deinterlace.c
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>2012-10-10 14:33:46 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-27 11:34:29 -0200
commit50509e5cfe6cb7dffde71a454c3266fbb55fbff1 (patch)
treefead9c8655dc9290d5d9a58d7238948b59d2641c /drivers/media/platform/m2m-deinterlace.c
parent7f2b3a7d8c8dbf3c9f70561f8a6d3a85b36cd16b (diff)
downloadblackbird-op-linux-50509e5cfe6cb7dffde71a454c3266fbb55fbff1.tar.gz
blackbird-op-linux-50509e5cfe6cb7dffde71a454c3266fbb55fbff1.zip
[media] media/m2m: 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/m2m-deinterlace.c')
-rw-r--r--drivers/media/platform/m2m-deinterlace.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/media/platform/m2m-deinterlace.c b/drivers/media/platform/m2m-deinterlace.c
index 45164c4f8452..fcdbb2744ebb 100644
--- a/drivers/media/platform/m2m-deinterlace.c
+++ b/drivers/media/platform/m2m-deinterlace.c
@@ -1108,17 +1108,5 @@ static struct platform_driver deinterlace_pdrv = {
.owner = THIS_MODULE,
},
};
-
-static void __exit deinterlace_exit(void)
-{
- platform_driver_unregister(&deinterlace_pdrv);
-}
-
-static int __init deinterlace_init(void)
-{
- return platform_driver_register(&deinterlace_pdrv);
-}
-
-module_init(deinterlace_init);
-module_exit(deinterlace_exit);
+module_platform_driver(deinterlace_pdrv);
OpenPOWER on IntegriCloud