Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282641
b: refs/heads/master
c: 9e3b6b9
h: refs/heads/master
i:
  282639: e3bdd69
v: v3
  • Loading branch information
Ben Skeggs committed Dec 21, 2011
1 parent e800e88 commit 26abd4a
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 2bdb06e3cff066c546fb41152bc582a5ec73e899
refs/heads/master: 9e3b6b99075a01ce47379eee74365aece14242f3
9 changes: 6 additions & 3 deletions trunk/drivers/gpu/drm/nouveau/nouveau_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,13 @@ nouveau_i2c_identify(struct drm_device *dev, const char *what,
struct nouveau_i2c_chan *i2c = nouveau_i2c_find(dev, index);
int i;

NV_DEBUG(dev, "Probing %ss on I2C bus: %d\n", what, index);
if (!i2c) {
NV_DEBUG(dev, "No bus when probing %s on %d\n", what, index);
return -ENODEV;
}

for (i = 0; i2c && info[i].addr; i++) {
NV_DEBUG(dev, "Probing %ss on I2C bus: %d\n", what, i2c->index);
for (i = 0; info[i].addr; i++) {
if (nouveau_probe_i2c_addr(i2c, info[i].addr) &&
(!match || match(i2c, &info[i]))) {
NV_INFO(dev, "Detected %s: %s\n", what, info[i].type);
Expand All @@ -386,6 +390,5 @@ nouveau_i2c_identify(struct drm_device *dev, const char *what,
}

NV_DEBUG(dev, "No devices found.\n");

return -ENODEV;
}

0 comments on commit 26abd4a

Please sign in to comment.