aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ov6650.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-02-12 04:56:32 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-08 06:48:01 -0500
commitc6e8d86fffd8edf1bfccbd441b1812ee919fe3d5 (patch)
tree3b4a8b33ebf13cfc33513ef8b7c9f2e8ba50f2d9 /drivers/media/video/ov6650.c
parenta2d2b25ce623757a87b35ef336d2d2c3b0a6fa13 (diff)
[media] convert drivers/media/* to use module_i2c_driver()
This patch converts the drivers in drivers/media/* to use the module_i2_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Heungjun Kim <riverful.kim@samsung.com> Cc: Joonyoung Shim <jy0922.shim@samsung.com> Cc: Andrew Chew <achew@nvidia.com> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Michael Grzeschik <m.grzeschik@pengutronix.de> Cc: Johannes Obermaier <johannes.obermaier@gmail.com> Cc: Steven Toth <stoth@kernellabs.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Acked-by: Tomasz Stanislawski <t.stanislaws@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com> Acked-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ov6650.c')
-rw-r--r--drivers/media/video/ov6650.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/video/ov6650.c b/drivers/media/video/ov6650.c
index 3627f3225bbb..3e028b1970dd 100644
--- a/drivers/media/video/ov6650.c
+++ b/drivers/media/video/ov6650.c
@@ -1046,18 +1046,7 @@ static struct i2c_driver ov6650_i2c_driver = {
1046 .id_table = ov6650_id, 1046 .id_table = ov6650_id,
1047}; 1047};
1048 1048
1049static int __init ov6650_module_init(void) 1049module_i2c_driver(ov6650_i2c_driver);
1050{
1051 return i2c_add_driver(&ov6650_i2c_driver);
1052}
1053
1054static void __exit ov6650_module_exit(void)
1055{
1056 i2c_del_driver(&ov6650_i2c_driver);
1057}
1058
1059module_init(ov6650_module_init);
1060module_exit(ov6650_module_exit);
1061 1050
1062MODULE_DESCRIPTION("SoC Camera driver for OmniVision OV6650"); 1051MODULE_DESCRIPTION("SoC Camera driver for OmniVision OV6650");
1063MODULE_AUTHOR("Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>"); 1052MODULE_AUTHOR("Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>");