]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/board_r.c
dm: Remove spi_init() from board_r.c when using driver model
[karo-tx-uboot.git] / common / board_r.c
index 7e1a76d97f73be5d2eb3d347dffbb82d301b7522..3affb6362f4531ebd3f313248df1fbd7c588e7bf 100644 (file)
@@ -354,7 +354,7 @@ static int initr_flash(void)
 }
 #endif
 
-#ifdef CONFIG_PPC
+#if defined(CONFIG_PPC) && !defined(CONFIG_DM_SPI)
 static int initr_spi(void)
 {
        /* PPC does this here */