[U-Boot] [PATCH 08/25] dm: Remove spi_init() from board_r.c when using driver model

Simon Glass sjg at chromium.org
Tue Jul 15 02:56:15 CEST 2014


Driver model does its own init, so we don't need this.

There is also a call in board_f.c but it is only enabled by CONFIG_HARD_SPI.
It is easy enough to disable that option when converting boards which use
it to driver model.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 common/board_r.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/board_r.c b/common/board_r.c
index 5c92664..e0d42eb 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -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 */
-- 
2.0.0.526.g5318336



More information about the U-Boot mailing list