From: Maxime Bizon Date: Fri, 31 Aug 2007 09:03:14 +0000 (+0200) Subject: [MIPS] R10000: Fix wrong test in dma-default.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d344dd52e50f4440810b641077282bfa1fd65d88;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [MIPS] R10000: Fix wrong test in dma-default.c Signed-off-by: Maxime Bizon Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c index 76903c727647..f60b3dc0fc62 100644 --- a/arch/mips/mm/dma-default.c +++ b/arch/mips/mm/dma-default.c @@ -35,7 +35,7 @@ static inline unsigned long dma_addr_to_virt(dma_addr_t dma_addr) static inline int cpu_is_noncoherent_r10000(struct device *dev) { return !plat_device_is_coherent(dev) && - (current_cpu_data.cputype == CPU_R10000 && + (current_cpu_data.cputype == CPU_R10000 || current_cpu_data.cputype == CPU_R12000); }