]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/mips/mm/dma-default.c
Merge tag 'v4.3-next-soc' of https://github.com/mbgg/linux-mediatek into next/soc
[karo-tx-linux.git] / arch / mips / mm / dma-default.c
index a914dc1cb6d1bc339cf44cc0c5aeac887a2e5f74..d8117be729a20ee26d2df8bb42a6f58b9670f513 100644 (file)
@@ -100,7 +100,7 @@ static gfp_t massage_gfp_flags(const struct device *dev, gfp_t gfp)
        else
 #endif
 #if defined(CONFIG_ZONE_DMA) && !defined(CONFIG_ZONE_DMA32)
-            if (dev->coherent_dma_mask < DMA_BIT_MASK(64))
+            if (dev->coherent_dma_mask < DMA_BIT_MASK(sizeof(phys_addr_t) * 8))
                dma_flag = __GFP_DMA;
        else
 #endif