[PATCH 0/7] drm: Completely remove struct drm_device.pdev

Thomas Zimmermann tzimmermann at suse.de
Sun May 2 10:49:46 UTC 2021


The pdev field in struct drm_device was recently moved into the legacy
section. Remove it entirely. References are replaced with upcasts from
the structure's dev field. This change only affects legacy drivers for
userspace modesetting.

Thomas Zimmermann (7):
  drm/i810: Remove references to struct drm_device.pdev
  drm/mga: Remove references to struct drm_device.pdev
  drm/r128: Remove references to struct drm_device.pdev
  drm/savage: Remove references to struct drm_device.pdev
  drm/sis: Remove references to struct drm_device.pdev
  drm/via: Remove references to drm_device.pdev
  drm: Remove pdev field from struct drm_device

 drivers/gpu/drm/drm_pci.c           |  1 -
 drivers/gpu/drm/i810/i810_dma.c     |  8 +++++---
 drivers/gpu/drm/mga/mga_dma.c       | 13 +++++++------
 drivers/gpu/drm/mga/mga_state.c     |  3 ++-
 drivers/gpu/drm/r128/ati_pcigart.c  | 11 ++++++-----
 drivers/gpu/drm/r128/r128_drv.c     |  4 +++-
 drivers/gpu/drm/r128/r128_state.c   |  3 ++-
 drivers/gpu/drm/savage/savage_bci.c | 26 ++++++++++++++------------
 drivers/gpu/drm/sis/sis_drv.c       |  3 ++-
 drivers/gpu/drm/via/via_dmablit.c   | 15 +++++++++------
 drivers/gpu/drm/via/via_map.c       |  3 ++-
 include/drm/drm_device.h            |  3 ---
 12 files changed, 52 insertions(+), 41 deletions(-)

--
2.31.1



More information about the dri-devel mailing list