Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219133
b: refs/heads/master
c: 7a004d1
h: refs/heads/master
i:
  219131: c3ce60b
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent 91dc9d9 commit b63a84a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c748826fe55c15b7f9d7566865ca0c85af1f72f
refs/heads/master: 7a004d135c3f15842c113db4864f4315c1c61f1d
27 changes: 21 additions & 6 deletions trunk/drivers/media/video/tvaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <media/tvaudio.h>
#include <media/v4l2-device.h>
#include <media/v4l2-chip-ident.h>
#include <media/v4l2-i2c-drv.h>

#include <media/i2c-addr.h>

Expand Down Expand Up @@ -2079,9 +2078,25 @@ static const struct i2c_device_id tvaudio_id[] = {
};
MODULE_DEVICE_TABLE(i2c, tvaudio_id);

static struct v4l2_i2c_driver_data v4l2_i2c_data = {
.name = "tvaudio",
.probe = tvaudio_probe,
.remove = tvaudio_remove,
.id_table = tvaudio_id,
static struct i2c_driver tvaudio_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "tvaudio",
},
.probe = tvaudio_probe,
.remove = tvaudio_remove,
.id_table = tvaudio_id,
};

static __init int init_tvaudio(void)
{
return i2c_add_driver(&tvaudio_driver);
}

static __exit void exit_tvaudio(void)
{
i2c_del_driver(&tvaudio_driver);
}

module_init(init_tvaudio);
module_exit(exit_tvaudio);

0 comments on commit b63a84a

Please sign in to comment.