diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/subdev/i2c/padgm204.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/i2c/padgm204.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/i2c/padgm204.c b/drivers/gpu/drm/nouveau/core/subdev/i2c/padgm204.c index f0e6fbb..1630a93 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/i2c/padgm204.c +++ b/drivers/gpu/drm/nouveau/core/subdev/i2c/padgm204.c @@ -32,7 +32,7 @@ struct gm204_i2c_pad { static int gm204_i2c_pad_fini(struct nouveau_object *object, bool suspend) { - struct nouveau_i2c *i2c = (void *)object->engine; + struct nouveau_i2c *i2c = (void *)nouveau_i2c(object); struct gm204_i2c_pad *pad = (void *)object; nv_mask(i2c, 0x00d97c + pad->addr, 0x00000001, 0x00000001); return nvkm_i2c_pad_fini(&pad->base, suspend); @@ -41,7 +41,7 @@ gm204_i2c_pad_fini(struct nouveau_object *object, bool suspend) static int gm204_i2c_pad_init(struct nouveau_object *object) { - struct nouveau_i2c *i2c = (void *)object->engine; + struct nouveau_i2c *i2c = (void *)nouveau_i2c(object); struct gm204_i2c_pad *pad = (void *)object; switch (nv_oclass(pad->base.next)->handle) { |