diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2012-10-10 13:33:46 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-27 09:34:29 -0400 |
commit | 50509e5cfe6cb7dffde71a454c3266fbb55fbff1 (patch) | |
tree | fead9c8655dc9290d5d9a58d7238948b59d2641c /drivers/media | |
parent | 7f2b3a7d8c8dbf3c9f70561f8a6d3a85b36cd16b (diff) |
[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')
-rw-r--r-- | drivers/media/platform/m2m-deinterlace.c | 14 |
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 = { | |||
1108 | .owner = THIS_MODULE, | 1108 | .owner = THIS_MODULE, |
1109 | }, | 1109 | }, |
1110 | }; | 1110 | }; |
1111 | 1111 | module_platform_driver(deinterlace_pdrv); | |
1112 | static void __exit deinterlace_exit(void) | ||
1113 | { | ||
1114 | platform_driver_unregister(&deinterlace_pdrv); | ||
1115 | } | ||
1116 | |||
1117 | static int __init deinterlace_init(void) | ||
1118 | { | ||
1119 | return platform_driver_register(&deinterlace_pdrv); | ||
1120 | } | ||
1121 | |||
1122 | module_init(deinterlace_init); | ||
1123 | module_exit(deinterlace_exit); | ||
1124 | 1112 | ||