]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
spi: Fix compilation failures
authorMichal Simek <monstr@monstr.eu>
Mon, 24 Sep 2012 09:27:06 +0000 (11:27 +0200)
committerMichal Simek <monstr@monstr.eu>
Mon, 24 Sep 2012 09:48:08 +0000 (11:48 +0200)
Signed-off-by: Michal Simek <monstr@monstr.eu>
drivers/spi/zynq_qspi.c

index 408caa9958111fae05bf9bfe4ee0b16f1b24a3c9..e9ff45b41b720a16ea25db73f8c46a9beab1de2d 100755 (executable)
@@ -196,7 +196,7 @@ typedef enum irqreturn irqreturn_t;
 #else
 static inline
 u32 xqspips_read(void *addr)
-{                                      
+{
        u32 val;
 
        val =  XIo_In32((unsigned)addr);
@@ -1384,7 +1384,8 @@ int xqspips_check_is_dual_flash(void __iomem *regs_base)
 {
        int is_dual = -1, lower_mio = 0, upper_mio = 0, val;
        u16 mask = 3, type = 2;
-       u32 mio_base, mio_pin_index;
+       u32 mio_pin_index;
+       void *mio_base;
 
 #ifdef CONFIG_EP107
 #ifdef CONFIG_XILINX_PSS_QSPI_USE_DUAL_FLASH