]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
SPARC: Build error fix
authorDaniel Hellstrom <daniel@gaisler.com>
Wed, 9 Jul 2008 12:34:11 +0000 (12:34 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 9 Jul 2008 22:51:16 +0000 (00:51 +0200)
(introduced by commit 391fd93ab23e15ab3dd58a54f5b609024009c378)

This patch makes SPARC targets build again. It is caused by
phys_addr_t and phys_size_t being defined in the wrong header
file. include/lmb.h need those typedefs to build.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
include/asm-sparc/io.h
include/asm-sparc/types.h

index 2a27d06798d763276286e7b11dac6accaa299844..ede0b1a8dbfda828bbe404453a2be183314108d0 100644 (file)
@@ -70,7 +70,6 @@
  * that can be used to access the memory range with the caching
  * properties specified by "flags".
  */
-typedef unsigned long phys_addr_t;
 
 #define MAP_NOCACHE    (0)
 #define MAP_WRCOMBINE  (0)
index 69f93d60b8179dab57cd88dde5fde425532008c1..2cf974a7a9cf5e805f1d1937a6c20ca2b26a3fc9 100644 (file)
@@ -65,6 +65,9 @@ typedef unsigned long long u64;
 /* DMA addresses are 32-bits wide */
 typedef u32 dma_addr_t;
 
+typedef unsigned long phys_addr_t;
+typedef unsigned long phys_size_t;
+
 #endif                         /* __KERNEL__ */
 #endif                         /* __ASSEMBLY__ */