aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ov7670.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-09-15 14:08:09 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-20 23:05:58 -0400
commitef2ac770cd69909f6387d8a9e045cb41b46aedcf (patch)
treeacdb5432796c6b34d51fd6532aab4059470ba51e /drivers/media/video/ov7670.c
parentcb595b516030bb0c356386e6c8de8569f1966e5b (diff)
V4L/DVB: ov7670: remove obsolete v4l2-i2c-drv.h header
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ov7670.c')
-rw-r--r--drivers/media/video/ov7670.c27
1 files changed, 21 insertions, 6 deletions
diff --git a/drivers/media/video/ov7670.c b/drivers/media/video/ov7670.c
index c141d2e604e3..089013ec987a 100644
--- a/drivers/media/video/ov7670.c
+++ b/drivers/media/video/ov7670.c
@@ -19,7 +19,6 @@
19#include <media/v4l2-device.h> 19#include <media/v4l2-device.h>
20#include <media/v4l2-chip-ident.h> 20#include <media/v4l2-chip-ident.h>
21#include <media/v4l2-mediabus.h> 21#include <media/v4l2-mediabus.h>
22#include <media/v4l2-i2c-drv.h>
23 22
24 23
25MODULE_AUTHOR("Jonathan Corbet <corbet@lwn.net>"); 24MODULE_AUTHOR("Jonathan Corbet <corbet@lwn.net>");
@@ -1496,9 +1495,25 @@ static const struct i2c_device_id ov7670_id[] = {
1496}; 1495};
1497MODULE_DEVICE_TABLE(i2c, ov7670_id); 1496MODULE_DEVICE_TABLE(i2c, ov7670_id);
1498 1497
1499static struct v4l2_i2c_driver_data v4l2_i2c_data = { 1498static struct i2c_driver ov7670_driver = {
1500 .name = "ov7670", 1499 .driver = {
1501 .probe = ov7670_probe, 1500 .owner = THIS_MODULE,
1502 .remove = ov7670_remove, 1501 .name = "ov7670",
1503 .id_table = ov7670_id, 1502 },
1503 .probe = ov7670_probe,
1504 .remove = ov7670_remove,
1505 .id_table = ov7670_id,
1504}; 1506};
1507
1508static __init int init_ov7670(void)
1509{
1510 return i2c_add_driver(&ov7670_driver);
1511}
1512
1513static __exit void exit_ov7670(void)
1514{
1515 i2c_del_driver(&ov7670_driver);
1516}
1517
1518module_init(init_ov7670);
1519module_exit(exit_ov7670);