diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2021-05-02 12:49:49 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2021-05-03 19:48:27 +0200 |
commit | aa96a16ad41e8bf56352ef5f83cc4781ca10560a (patch) | |
tree | 1ab690b8a8b23fbf97b17afa6bd751a306e1eff4 /drivers/gpu/drm/r128/r128_drv.c | |
parent | b420fb8dee00bda3ac3dc43df28fbc9eccf7f723 (diff) |
drm/r128: Remove references to struct drm_device.pdev
Replace all references to struct drm_device's pdev field with
an upcast from dev.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210502104953.21768-4-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/r128/r128_drv.c')
-rw-r--r-- | drivers/gpu/drm/r128/r128_drv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/r128/r128_drv.c b/drivers/gpu/drm/r128/r128_drv.c index b7a5f162ebae..e35a3a1449bd 100644 --- a/drivers/gpu/drm/r128/r128_drv.c +++ b/drivers/gpu/drm/r128/r128_drv.c @@ -85,7 +85,9 @@ static struct drm_driver driver = { int r128_driver_load(struct drm_device *dev, unsigned long flags) { - pci_set_master(dev->pdev); + struct pci_dev *pdev = to_pci_dev(dev->dev); + + pci_set_master(pdev); return drm_vblank_init(dev, 1); } |