Commit 9e3b6b99 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/i2c: fix debug message

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 2bdb06e3
...@@ -375,9 +375,13 @@ nouveau_i2c_identify(struct drm_device *dev, const char *what, ...@@ -375,9 +375,13 @@ nouveau_i2c_identify(struct drm_device *dev, const char *what,
struct nouveau_i2c_chan *i2c = nouveau_i2c_find(dev, index); struct nouveau_i2c_chan *i2c = nouveau_i2c_find(dev, index);
int i; 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) && if (nouveau_probe_i2c_addr(i2c, info[i].addr) &&
(!match || match(i2c, &info[i]))) { (!match || match(i2c, &info[i]))) {
NV_INFO(dev, "Detected %s: %s\n", what, info[i].type); NV_INFO(dev, "Detected %s: %s\n", what, info[i].type);
...@@ -386,6 +390,5 @@ nouveau_i2c_identify(struct drm_device *dev, const char *what, ...@@ -386,6 +390,5 @@ nouveau_i2c_identify(struct drm_device *dev, const char *what,
} }
NV_DEBUG(dev, "No devices found.\n"); NV_DEBUG(dev, "No devices found.\n");
return -ENODEV; return -ENODEV;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment