Skip to content

Commit 3f47d00

Browse files
Christoph Hellwigthomashvmw
authored andcommitted
drm/vmwgfx: remove CONFIG_X86 ifdefs
The driver depends on CONFIG_X86 so these are dead code. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
1 parent f0e7ce1 commit 3f47d00

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ static int vmw_dma_select_mode(struct vmw_private *dev_priv)
565565
[vmw_dma_alloc_coherent] = "Using coherent TTM pages.",
566566
[vmw_dma_map_populate] = "Keeping DMA mappings.",
567567
[vmw_dma_map_bind] = "Giving up DMA mappings early."};
568-
#ifdef CONFIG_X86
569568
const struct dma_map_ops *dma_ops = get_dma_ops(dev_priv->dev->dev);
570569

571570
#ifdef CONFIG_INTEL_IOMMU
@@ -607,11 +606,6 @@ static int vmw_dma_select_mode(struct vmw_private *dev_priv)
607606
if (dev_priv->map_mode == vmw_dma_alloc_coherent)
608607
return -EINVAL;
609608
#endif
610-
611-
#else /* CONFIG_X86 */
612-
dev_priv->map_mode = vmw_dma_map_populate;
613-
#endif /* CONFIG_X86 */
614-
615609
DRM_INFO("DMA map mode: %s\n", names[dev_priv->map_mode]);
616610

617611
return 0;

0 commit comments

Comments
 (0)