Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92624
b: refs/heads/master
c: b38bf41
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent 754c54f commit a6a22a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: faea4d2ab2d4710f87739fd53b5c13ca7a7d34aa
refs/heads/master: b38bf410fed223a48482e499150d4b554526a13a
12 changes: 9 additions & 3 deletions trunk/drivers/media/video/ivtv/ivtv-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,16 @@ int ivtv_i2c_register(struct ivtv *itv, unsigned idx)
}

if (id != I2C_DRIVERID_TUNER) {
c = i2c_new_device(&itv->i2c_adap, &info);
if (c->driver == NULL)
if (id == I2C_DRIVERID_UPD64031A ||
id == I2C_DRIVERID_UPD64083) {
unsigned short addrs[2] = { info.addr, I2C_CLIENT_END };

c = i2c_new_probed_device(&itv->i2c_adap, &info, addrs);
} else
c = i2c_new_device(&itv->i2c_adap, &info);
if (c && c->driver == NULL)
i2c_unregister_device(c);
else
else if (c)
itv->i2c_clients[i] = c;
return itv->i2c_clients[i] ? 0 : -ENODEV;
}
Expand Down

0 comments on commit a6a22a2

Please sign in to comment.