]> err.no Git - linux-2.6/blobdiff - arch/h8300/mm/kmap.c
h8300: missing include
[linux-2.6] / arch / h8300 / mm / kmap.c
index 4101ab54fc17753744dd2cc1e6785db9225dd840..5c7af09ae8d1c3e830c3ff2ae0dfa2c29ac19e96 100644 (file)
@@ -8,7 +8,6 @@
  *  Copyright (C) 2000-2002 David McCullough <davidm@snapgear.com>
  */
 
-#include <linux/config.h>
 #include <linux/mm.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 
 #undef DEBUG
 
+#define VIRT_OFFSET (0x01000000)
+
 /*
  * Map some physical address range into the kernel address space.
  */
 void *__ioremap(unsigned long physaddr, unsigned long size, int cacheflag)
 {
-       return (void *)physaddr;
+       return (void *)(physaddr + VIRT_OFFSET);
 }
 
 /*