diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2020-12-01 11:35:29 +0100 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2021-01-06 15:43:13 +0100 |
commit | a2c68495b579862fc5b15b3d136c8b380703b4e7 (patch) | |
tree | 4f84d058e565f9d0958b37282f997591068d0059 /drivers/gpu/drm/gma500/mdfld_device.c | |
parent | ba596ee6545200ca29c26bed345bf2f74798f44e (diff) | |
download | linux-a2c68495b579862fc5b15b3d136c8b380703b4e7.tar.gz linux-a2c68495b579862fc5b15b3d136c8b380703b4e7.tar.bz2 linux-a2c68495b579862fc5b15b3d136c8b380703b4e7.zip |
drm/gma500: Remove references to struct drm_device.pdev
Using struct drm_device.pdev is deprecated. Convert gma500 to struct
drm_device.dev. No functional changes.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201201103542.2182-8-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/gma500/mdfld_device.c')
-rw-r--r-- | drivers/gpu/drm/gma500/mdfld_device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/gma500/mdfld_device.c b/drivers/gpu/drm/gma500/mdfld_device.c index b83d59b21de5..684d6cf9856f 100644 --- a/drivers/gpu/drm/gma500/mdfld_device.c +++ b/drivers/gpu/drm/gma500/mdfld_device.c @@ -523,7 +523,9 @@ static struct gpiod_lookup_table mdfld_dsi_pipe_gpio_table = { static int mdfld_chip_setup(struct drm_device *dev) { struct drm_psb_private *dev_priv = dev->dev_private; - if (pci_enable_msi(dev->pdev)) + struct pci_dev *pdev = to_pci_dev(dev->dev); + + if (pci_enable_msi(pdev)) dev_warn(dev->dev, "Enabling MSI failed!\n"); dev_priv->regmap = mdfld_regmap; |