summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/mgag200/mgag200_i2c.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2020-12-01 11:35:34 +0100
committerThomas Zimmermann <tzimmermann@suse.de>2021-01-06 15:43:13 +0100
commit0e6aadca117a3a1e05643258bb94134b37265a55 (patch)
tree79bd148bd5e7a58c0c631edb543cb7c1ce7169ae /drivers/gpu/drm/mgag200/mgag200_i2c.c
parentdrm/gma500: Remove references to struct drm_device.pdev (diff)
downloadlinux-0e6aadca117a3a1e05643258bb94134b37265a55.tar.xz
linux-0e6aadca117a3a1e05643258bb94134b37265a55.zip
drm/mgag200: Remove references to struct drm_device.pdev
Using struct drm_device.pdev is deprecated. Convert mgag200 to struct drm_device.dev. No functional changes. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20201201103542.2182-13-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/mgag200/mgag200_i2c.c')
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_i2c.c b/drivers/gpu/drm/mgag200/mgag200_i2c.c
index 09731e614e46..ac8e34eef513 100644
--- a/drivers/gpu/drm/mgag200/mgag200_i2c.c
+++ b/drivers/gpu/drm/mgag200/mgag200_i2c.c
@@ -126,7 +126,7 @@ struct mga_i2c_chan *mgag200_i2c_create(struct drm_device *dev)
i2c->clock = clock;
i2c->adapter.owner = THIS_MODULE;
i2c->adapter.class = I2C_CLASS_DDC;
- i2c->adapter.dev.parent = &dev->pdev->dev;
+ i2c->adapter.dev.parent = dev->dev;
i2c->dev = dev;
i2c_set_adapdata(&i2c->adapter, i2c);
snprintf(i2c->adapter.name, sizeof(i2c->adapter.name), "mga i2c");