diff options
| author | Thomas Zimmermann <[email protected]> | 2019-12-03 10:03:56 +0000 |
|---|---|---|
| committer | Thomas Zimmermann <[email protected]> | 2019-12-05 07:44:04 +0000 |
| commit | 1be9d5f069964108125592af92304da76c5865bf (patch) | |
| tree | d963d48e2e4cc9244d823b1a18e708349dbc6f6b /drivers/gpu/drm/drm_pci.c | |
| parent | drm/pci: Only build drm_pci.c if CONFIG_PCI is set (diff) | |
| download | kernel-1be9d5f069964108125592af92304da76c5865bf.tar.gz kernel-1be9d5f069964108125592af92304da76c5865bf.zip | |
drm/pci: Hide legacy PCI functions from non-legacy code
Declarations of drm_legacy_pci_{init,exit}() are being moved to
drm_legacy.h. CONFIG_DRM_LEGACY protects the implementation.
Signed-off-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/drm_pci.c')
| -rw-r--r-- | drivers/gpu/drm/drm_pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c index 40a2015abc77..f2e43d341980 100644 --- a/drivers/gpu/drm/drm_pci.c +++ b/drivers/gpu/drm/drm_pci.c @@ -282,6 +282,8 @@ err_free: } EXPORT_SYMBOL(drm_get_pci_dev); +#ifdef CONFIG_DRM_LEGACY + /** * drm_legacy_pci_init - shadow-attach a legacy DRM PCI driver * @driver: DRM device driver @@ -354,3 +356,5 @@ void drm_legacy_pci_exit(struct drm_driver *driver, struct pci_driver *pdriver) DRM_INFO("Module unloaded\n"); } EXPORT_SYMBOL(drm_legacy_pci_exit); + +#endif |
