]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/soft_spi.c
Fix compile warning on lib_ppc/board.c
[karo-tx-uboot.git] / common / soft_spi.c
index b9a8fa8d5f33de46d3c872be6c18b0b7182d6b6e..e4250616c2858943110fcabefa56513a32eee634 100644 (file)
@@ -40,7 +40,6 @@
 #endif
 
 
-
 /*=====================================================================*/
 /*                         Public Functions                            */
 /*=====================================================================*/
@@ -80,7 +79,9 @@ void spi_init (void)
  */
 int  spi_xfer(spi_chipsel_type chipsel, int bitlen, uchar *dout, uchar *din)
 {
+#ifdef CFG_IMMR
        volatile immap_t *immr = (immap_t *)CFG_IMMR;
+#endif
        uchar tmpdin  = 0;
        uchar tmpdout = 0;
        int   j;
@@ -132,4 +133,3 @@ int  spi_xfer(spi_chipsel_type chipsel, int bitlen, uchar *dout, uchar *din)
 }
 
 #endif /* CONFIG_SOFT_SPI */
-