diff options
Diffstat (limited to 'nvkm/subdev/i2c/pad.h')
-rw-r--r-- | nvkm/subdev/i2c/pad.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nvkm/subdev/i2c/pad.h b/nvkm/subdev/i2c/pad.h index 452ac10c3..89aea46a7 100644 --- a/nvkm/subdev/i2c/pad.h +++ b/nvkm/subdev/i2c/pad.h @@ -14,7 +14,7 @@ static inline struct nvkm_i2c_pad * nvkm_i2c_pad(struct nouveau_i2c_port *port) { struct nouveau_object *pad = nv_object(port); - while (pad->parent) + while (!nv_iclass(pad->parent, NV_SUBDEV_CLASS)) pad = pad->parent; return (void *)pad; } |