summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/subdev/i2c/pad.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/subdev/i2c/pad.c')
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/i2c/pad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/i2c/pad.c b/drivers/gpu/drm/nouveau/core/subdev/i2c/pad.c
index e9e4124..a3d0d82 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/i2c/pad.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/i2c/pad.c
@@ -48,7 +48,7 @@ nvkm_i2c_pad_create_(struct nouveau_object *parent,
struct nouveau_oclass *oclass, int index,
int size, void **pobject)
{
- struct nouveau_i2c *i2c = (void *)engine;
+ struct nouveau_i2c *i2c = nouveau_i2c(parent);
struct nouveau_i2c_port *port;
struct nvkm_i2c_pad *pad;
int ret;
OpenPOWER on IntegriCloud