]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: Fix build warnings in board.c
authorJoe Hershberger <joe.hershberger@ni.com>
Tue, 5 Jun 2012 16:18:42 +0000 (11:18 -0500)
committerJohn Linn <john.linn@xilinx.com>
Wed, 6 Jun 2012 18:02:23 +0000 (11:02 -0700)
I/O accessors should be inline anyway
Change errant pointer into an int

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
board/xilinx/zynq_common/board.c

index a85352beb9342666c73986327e4ddff0d8795710..f5b65b312781f02aada9ab3d78f477cae187612f 100644 (file)
@@ -40,12 +40,12 @@ static u32 In32(u32 InAddress)
     return temp;
 }
 
-static void Out8(u32 OutAddress, u8 Value)
+static inline void Out8(u32 OutAddress, u8 Value)
 {
     *(volatile u8 *) OutAddress = Value;
 }
 
-static u8 In8(u32 InAddress)
+static inline u8 In8(u32 InAddress)
 {
     return *(u8 *) InAddress;
 }
@@ -63,7 +63,7 @@ void XIo_Out32(u32 OutAddress, u32 Value)
 
 u32 XIo_In32(u32 InAddress)
 {
-       volatile u32 temp = *(volatile u32 *)InAddress;
+       volatile u32 temp = *(volatile u32 *)InAddress;
        SYNCHRONIZE_IO;
        return temp;
 }