From a2ff777765656324ca43ae7265f34d5b0b2e3b3a Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Thu, 9 Jul 2020 17:05:36 +0200 Subject: Added compatibility for Kernel 5.5+ ioremap_nocache and ioremap are now identical https://lore.kernel.org/linux-mips/20191209194819.GA28157@lst.de/T/ --- driver/compat.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/driver/compat.h b/driver/compat.h index e6ff69e..472ca4f 100644 --- a/driver/compat.h +++ b/driver/compat.h @@ -48,5 +48,11 @@ # define get_user_pages_compat(vma, nr, pages) get_user_pages(current, current->mm, vma, nr, 1, 0, pages, NULL) #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,5,0) +# define ioremap_nocache ioremap +// ioremap_nocache and ioremap are now platform independent and identical, as of +// Kernel Version 5.5 +// https://lore.kernel.org/linux-mips/20191209194819.GA28157@lst.de/T/ +#endif #endif -- cgit v1.2.1