summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnand Balagopalakrishnan <anandb@ti.com>2014-12-07 11:43:16 +0300
committerAnand Balagopalakrishnan <anandb@ti.com>2014-12-08 13:19:47 +0300
commit5d1da83d94dc896580cadf2f5aead391985304d0 (patch)
tree64635c024c10f8c7b23569eeb854ba2294df6bc5
parent3929a26b32c09be362545af66f07f94a36e0b1e7 (diff)
downloadomap5-sgx-ddk-linux-5d1da83d94dc896580cadf2f5aead391985304d0.tar.xz
K3.14: API changes for ioremap
ioremap_cached is redefined as ioremap_cache in k3.14 Change-Id: Ie539ef5da4109e1bd2d5cc589c026d833858c849 Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
-rw-r--r--eurasia_km/services4/srvkm/env/linux/mutils.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/eurasia_km/services4/srvkm/env/linux/mutils.h b/eurasia_km/services4/srvkm/env/linux/mutils.h
index 891598c..0f55abe 100644
--- a/eurasia_km/services4/srvkm/env/linux/mutils.h
+++ b/eurasia_km/services4/srvkm/env/linux/mutils.h
@@ -78,10 +78,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#if defined(__i386__) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26))
#define IOREMAP(pa, bytes) ioremap_cache(pa, bytes)
#else
- #if defined(__arm__) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0))
- #define IOREMAP(pa, bytes) ioremap_cached(pa, bytes)
- #else
- #define IOREMAP(pa, bytes) ioremap(pa, bytes)
+ #if defined(__arm__)
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0))
+ #define IOREMAP(pa, bytes) ioremap_cache(pa, bytes)
+ #else
+ #define IOREMAP(pa, bytes) ioremap_cached(pa, bytes)
+ #endif
#endif
#endif