Skip to contentSkip to conversation

Wrong CONFIG option prevents setup of DMA zone.

PATCH Applied Thomas Bogendoerfer 2 participants 2 messages Dec 30, 2007 – Jan 7, 2008 MIPS

lore
Share & tools
lore

Thomas Bogendoerfer

author maintainer
#0 lore raw

PATCH 1/1 Wrong CONFIG option prevents setup of DMA zone.

Wrong CONFIG option prevents setup of DMA zone.

---

 arch/mips/mm/dma-default.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/mips/mm/dma-default.c +1 -1
index ae76795..810535d 100644
@@ -45,7 +45,7 @@ static gfp_t massage_gfp_flags(const struct device *dev, gfp_t gfp)
 	/* ignore region specifiers */
 	gfp &= ~(__GFP_DMA | __GFP_DMA32 | __GFP_HIGHMEM);
 
-#ifdef CONFIG_ZONE_DMA32
+#ifdef CONFIG_ZONE_DMA
 	if (dev == NULL)
 		gfp |= __GFP_DMA;
 	else if (dev->coherent_dma_mask < DMA_BIT_MASK(24))