projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d7a045
)
drm: Move struct drm_device.pdev to legacy section
author
Thomas Zimmermann
<tzimmermann@suse.de>
Thu, 29 Apr 2021 10:51:01 +0000
(12:51 +0200)
committer
Thomas Zimmermann
<tzimmermann@suse.de>
Thu, 29 Apr 2021 19:19:10 +0000
(21:19 +0200)
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: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20210429105101.25667-6-tzimmermann@suse.de
include/drm/drm_device.h
patch
|
blob
|
history
diff --git
a/include/drm/drm_device.h
b/include/drm/drm_device.h
index
d647223
..
c5a1956
100644
(file)
--- a/
include/drm/drm_device.h
+++ b/
include/drm/drm_device.h
@@
-279,9
+279,6
@@
struct drm_device {
/** @agp: AGP data */
struct drm_agp_head *agp;
- /** @pdev: PCI device structure */
- struct pci_dev *pdev;
-
/** @num_crtcs: Number of CRTCs on this device */
unsigned int num_crtcs;
@@
-324,6
+321,9
@@
struct drm_device {
/* List of devices per driver for stealth attach cleanup */
struct list_head legacy_dev_list;
+ /* PCI device structure */
+ struct pci_dev *pdev;
+
#ifdef __alpha__
/** @hose: PCI hose, only used on ALPHA platforms. */
struct pci_controller *hose;