diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-10 01:21:49 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-10 20:27:13 -0500 |
commit | 1d6629b1561ad34a6e6d17ece00bd65e1bab3724 (patch) | |
tree | 61b5a5062aa797f5bfc1da0a7b3b9876ce3d2a21 /drivers/media/video/omap3isp/isp.c | |
parent | aa5fb974cf3a30162c9c426c507486f3c2ab54c5 (diff) |
[media] convert drivers/media/* to use module_platform_driver()
This patch converts the drivers in drivers/media/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: "Richard Röjfors" <richard.rojfors@pelagicore.com>
Cc: "Matti J. Aaltonen" <matti.j.aaltonen@nokia.com>
Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: Manjunath Hadli <manjunath.hadli@ti.com>
Cc: Muralidharan Karicheri <m-karicheri2@ti.com>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Daniel Drake <dsd@laptop.org>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Matti J. Aaltonen <matti.j.aaltonen@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/omap3isp/isp.c')
-rw-r--r-- | drivers/media/video/omap3isp/isp.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/media/video/omap3isp/isp.c b/drivers/media/video/omap3isp/isp.c index 5cc15ba6a76a..faf1650e8747 100644 --- a/drivers/media/video/omap3isp/isp.c +++ b/drivers/media/video/omap3isp/isp.c | |||
@@ -2247,24 +2247,7 @@ static struct platform_driver omap3isp_driver = { | |||
2247 | }, | 2247 | }, |
2248 | }; | 2248 | }; |
2249 | 2249 | ||
2250 | /* | 2250 | module_platform_driver(omap3isp_driver); |
2251 | * isp_init - ISP module initialization. | ||
2252 | */ | ||
2253 | static int __init isp_init(void) | ||
2254 | { | ||
2255 | return platform_driver_register(&omap3isp_driver); | ||
2256 | } | ||
2257 | |||
2258 | /* | ||
2259 | * isp_cleanup - ISP module cleanup. | ||
2260 | */ | ||
2261 | static void __exit isp_cleanup(void) | ||
2262 | { | ||
2263 | platform_driver_unregister(&omap3isp_driver); | ||
2264 | } | ||
2265 | |||
2266 | module_init(isp_init); | ||
2267 | module_exit(isp_cleanup); | ||
2268 | 2251 | ||
2269 | MODULE_AUTHOR("Nokia Corporation"); | 2252 | MODULE_AUTHOR("Nokia Corporation"); |
2270 | MODULE_DESCRIPTION("TI OMAP3 ISP driver"); | 2253 | MODULE_DESCRIPTION("TI OMAP3 ISP driver"); |