Commit 19d327a3 authored by Thomas Zimmermann's avatar Thomas Zimmermann

drm: Move struct drm_device.pdev to legacy section

Struct drm_device.pdev is being moved to legacy status as only legacy
DRM drivers use it. A possible follow-up patchset could remove pdev
entirely.

v4:
	* rebased
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210429105101.25667-6-tzimmermann@suse.de
parent 9d7a0455
...@@ -279,9 +279,6 @@ struct drm_device { ...@@ -279,9 +279,6 @@ struct drm_device {
/** @agp: AGP data */ /** @agp: AGP data */
struct drm_agp_head *agp; struct drm_agp_head *agp;
/** @pdev: PCI device structure */
struct pci_dev *pdev;
/** @num_crtcs: Number of CRTCs on this device */ /** @num_crtcs: Number of CRTCs on this device */
unsigned int num_crtcs; unsigned int num_crtcs;
...@@ -324,6 +321,9 @@ struct drm_device { ...@@ -324,6 +321,9 @@ struct drm_device {
/* List of devices per driver for stealth attach cleanup */ /* List of devices per driver for stealth attach cleanup */
struct list_head legacy_dev_list; struct list_head legacy_dev_list;
/* PCI device structure */
struct pci_dev *pdev;
#ifdef __alpha__ #ifdef __alpha__
/** @hose: PCI hose, only used on ALPHA platforms. */ /** @hose: PCI hose, only used on ALPHA platforms. */
struct pci_controller *hose; struct pci_controller *hose;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment