projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cee59f1
)
drm/nouveau/i2c: fix typo when checking nvio i2c port validity
author
Ben Skeggs
<bskeggs@redhat.com>
Tue, 30 Oct 2012 05:07:58 +0000
(15:07 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Wed, 31 Oct 2012 01:05:33 +0000
(11:05 +1000)
Reported-by: Mathieu Chouquet-Stringer <mathieu@csetco.com>
Tested-by: Mathieu Chouquet-Stringer <mathieu@csetco.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
b/drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
index 3d2c88310f982553380f19a7f89d5379a89a5d01..dbfc2abf0cfe1a98379a567fa8a7a90fcd409d5f 100644
(file)
--- a/
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
+++ b/
drivers/gpu/drm/nouveau/core/subdev/i2c/base.c
@@
-292,7
+292,7
@@
nouveau_i2c_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
case DCB_I2C_NVIO_BIT:
port->drive = info.drive & 0x0f;
if (device->card_type < NV_D0) {
- if (
info.
drive >= ARRAY_SIZE(nv50_i2c_port))
+ if (
port->
drive >= ARRAY_SIZE(nv50_i2c_port))
break;
port->drive = nv50_i2c_port[port->drive];
port->sense = port->drive;