Commit b347e044 authored by Thomas Zimmermann's avatar Thomas Zimmermann

drm: Remove pdev field from struct drm_device

The field pdev in struct drm_device is unused. Remove it. The
value can be obtained by upcasting from the structure's dev field.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210502104953.21768-8-tzimmermann@suse.de
parent 9a31b381
...@@ -162,7 +162,6 @@ static int drm_get_pci_dev(struct pci_dev *pdev, ...@@ -162,7 +162,6 @@ static int drm_get_pci_dev(struct pci_dev *pdev,
if (ret) if (ret)
goto err_free; goto err_free;
dev->pdev = pdev;
#ifdef __alpha__ #ifdef __alpha__
dev->hose = pdev->sysdata; dev->hose = pdev->sysdata;
#endif #endif
......
...@@ -321,9 +321,6 @@ struct drm_device { ...@@ -321,9 +321,6 @@ 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