diff options
Diffstat (limited to 'drivers/media/video/indycam.c')
-rw-r--r-- | drivers/media/video/indycam.c | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/drivers/media/video/indycam.c b/drivers/media/video/indycam.c index 3d6940163b12..e5ed4db32e7b 100644 --- a/drivers/media/video/indycam.c +++ b/drivers/media/video/indycam.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/i2c.h> | 24 | #include <linux/i2c.h> |
25 | #include <media/v4l2-device.h> | 25 | #include <media/v4l2-device.h> |
26 | #include <media/v4l2-chip-ident.h> | 26 | #include <media/v4l2-chip-ident.h> |
27 | #include <media/v4l2-i2c-drv.h> | ||
28 | 27 | ||
29 | #include "indycam.h" | 28 | #include "indycam.h" |
30 | 29 | ||
@@ -378,9 +377,25 @@ static const struct i2c_device_id indycam_id[] = { | |||
378 | }; | 377 | }; |
379 | MODULE_DEVICE_TABLE(i2c, indycam_id); | 378 | MODULE_DEVICE_TABLE(i2c, indycam_id); |
380 | 379 | ||
381 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 380 | static struct i2c_driver indycam_driver = { |
382 | .name = "indycam", | 381 | .driver = { |
383 | .probe = indycam_probe, | 382 | .owner = THIS_MODULE, |
384 | .remove = indycam_remove, | 383 | .name = "indycam", |
385 | .id_table = indycam_id, | 384 | }, |
385 | .probe = indycam_probe, | ||
386 | .remove = indycam_remove, | ||
387 | .id_table = indycam_id, | ||
386 | }; | 388 | }; |
389 | |||
390 | static __init int init_indycam(void) | ||
391 | { | ||
392 | return i2c_add_driver(&indycam_driver); | ||
393 | } | ||
394 | |||
395 | static __exit void exit_indycam(void) | ||
396 | { | ||
397 | i2c_del_driver(&indycam_driver); | ||
398 | } | ||
399 | |||
400 | module_init(init_indycam); | ||
401 | module_exit(exit_indycam); | ||