From: Ingo Molnar <mingo@elte.hu>
Date: Tue, 26 Feb 2008 08:30:32 +0000 (+0100)
Subject: x86: ioremap, remove WARN_ON()
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9a46d7e5b63903a70cd96c2c1391a7a26a8dbec9;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git

x86: ioremap, remove WARN_ON()

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---

diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c
index ac3c959e271..8fe576baa14 100644
--- a/arch/x86/mm/ioremap.c
+++ b/arch/x86/mm/ioremap.c
@@ -134,8 +134,6 @@ static void __iomem *__ioremap(unsigned long phys_addr, unsigned long size,
 			return NULL;
 	}
 
-	WARN_ON_ONCE(page_is_ram(pfn));
-
 	switch (mode) {
 	case IOR_MODE_UNCACHED:
 	default: