aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pxa_camera.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-01-10 01:21:49 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-10 20:27:13 -0500
commit1d6629b1561ad34a6e6d17ece00bd65e1bab3724 (patch)
tree61b5a5062aa797f5bfc1da0a7b3b9876ce3d2a21 /drivers/media/video/pxa_camera.c
parentaa5fb974cf3a30162c9c426c507486f3c2ab54c5 (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/pxa_camera.c')
-rw-r--r--drivers/media/video/pxa_camera.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c
index 2f9ae634b7cf..0bd7da26d018 100644
--- a/drivers/media/video/pxa_camera.c
+++ b/drivers/media/video/pxa_camera.c
@@ -1852,19 +1852,7 @@ static struct platform_driver pxa_camera_driver = {
1852 .remove = __devexit_p(pxa_camera_remove), 1852 .remove = __devexit_p(pxa_camera_remove),
1853}; 1853};
1854 1854
1855 1855module_platform_driver(pxa_camera_driver);
1856static int __init pxa_camera_init(void)
1857{
1858 return platform_driver_register(&pxa_camera_driver);
1859}
1860
1861static void __exit pxa_camera_exit(void)
1862{
1863 platform_driver_unregister(&pxa_camera_driver);
1864}
1865
1866module_init(pxa_camera_init);
1867module_exit(pxa_camera_exit);
1868 1856
1869MODULE_DESCRIPTION("PXA27x SoC Camera Host driver"); 1857MODULE_DESCRIPTION("PXA27x SoC Camera Host driver");
1870MODULE_AUTHOR("Guennadi Liakhovetski <kernel@pengutronix.de>"); 1858MODULE_AUTHOR("Guennadi Liakhovetski <kernel@pengutronix.de>");