Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 514b6d0c authored by Arnaud Patard's avatar Arnaud Patard Committed by Ralf Baechle
Browse files

MIPS: Loongson: Fix phys_mem_access_prot() check



The check used to determine if uncached accelerated should be used or not
is wrong. The parenthesis are misplaced and making the test fail.

Signed-off-by: default avatarArnaud Patard <apatard@mandriva.com>
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/1161/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent ff40ad72
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
	unsigned long end = offset + size;

	if (__uncached_access(file, offset)) {
		if (((uca_start && offset) >= uca_start) &&
		if (uca_start && (offset >= uca_start) &&
		    (end <= uca_end))
			return __pgprot((pgprot_val(vma_prot) &
					 ~_CACHE_MASK) |