diff options
Diffstat (limited to 'drivers/media/video/tda7432.c')
-rw-r--r-- | drivers/media/video/tda7432.c | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/drivers/media/video/tda7432.c b/drivers/media/video/tda7432.c index 80f1cee23fa5..3941f954daf4 100644 --- a/drivers/media/video/tda7432.c +++ b/drivers/media/video/tda7432.c | |||
@@ -36,7 +36,6 @@ | |||
36 | #include <media/v4l2-device.h> | 36 | #include <media/v4l2-device.h> |
37 | #include <media/v4l2-ioctl.h> | 37 | #include <media/v4l2-ioctl.h> |
38 | #include <media/i2c-addr.h> | 38 | #include <media/i2c-addr.h> |
39 | #include <media/v4l2-i2c-drv.h> | ||
40 | 39 | ||
41 | #ifndef VIDEO_AUDIO_BALANCE | 40 | #ifndef VIDEO_AUDIO_BALANCE |
42 | # define VIDEO_AUDIO_BALANCE 32 | 41 | # define VIDEO_AUDIO_BALANCE 32 |
@@ -472,9 +471,25 @@ static const struct i2c_device_id tda7432_id[] = { | |||
472 | }; | 471 | }; |
473 | MODULE_DEVICE_TABLE(i2c, tda7432_id); | 472 | MODULE_DEVICE_TABLE(i2c, tda7432_id); |
474 | 473 | ||
475 | static struct v4l2_i2c_driver_data v4l2_i2c_data = { | 474 | static struct i2c_driver tda7432_driver = { |
476 | .name = "tda7432", | 475 | .driver = { |
477 | .probe = tda7432_probe, | 476 | .owner = THIS_MODULE, |
478 | .remove = tda7432_remove, | 477 | .name = "tda7432", |
479 | .id_table = tda7432_id, | 478 | }, |
479 | .probe = tda7432_probe, | ||
480 | .remove = tda7432_remove, | ||
481 | .id_table = tda7432_id, | ||
480 | }; | 482 | }; |
483 | |||
484 | static __init int init_tda7432(void) | ||
485 | { | ||
486 | return i2c_add_driver(&tda7432_driver); | ||
487 | } | ||
488 | |||
489 | static __exit void exit_tda7432(void) | ||
490 | { | ||
491 | i2c_del_driver(&tda7432_driver); | ||
492 | } | ||
493 | |||
494 | module_init(init_tda7432); | ||
495 | module_exit(exit_tda7432); | ||