diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2020-04-03 13:06:09 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-04-03 17:11:28 +0200 |
commit | 33775336d56ebed543f4d6cc636e9018c8a671a1 (patch) | |
tree | 469db6304a3d6e5c2d4f27741235f9466c499dbe /drivers/gpu/drm/drm_pci.c | |
parent | c76d4ab764adaef6ee4c385df2df24dbaea88412 (diff) | |
download | linux-33775336d56ebed543f4d6cc636e9018c8a671a1.tar.bz2 |
drm/pci: Move drm_pci_alloc/free under CONFIG_DRM_LEGACY
All other users have been removed, yay!
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
[fix checkpatch warning]
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200403110610.2344842-1-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm/drm_pci.c')
-rw-r--r-- | drivers/gpu/drm/drm_pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_pci.c b/drivers/gpu/drm/drm_pci.c index 81aa21561982..131b7a139fda 100644 --- a/drivers/gpu/drm/drm_pci.c +++ b/drivers/gpu/drm/drm_pci.c @@ -36,6 +36,8 @@ #include "drm_internal.h" #include "drm_legacy.h" +#ifdef CONFIG_DRM_LEGACY + /** * drm_pci_alloc - Allocate a PCI consistent memory block, for DMA. * @dev: DRM device @@ -93,6 +95,7 @@ void drm_pci_free(struct drm_device * dev, drm_dma_handle_t * dmah) } EXPORT_SYMBOL(drm_pci_free); +#endif static int drm_get_pci_domain(struct drm_device *dev) { |