[U-Boot] [PATCH] Blackfin: bfin_spi: fix build error when DEBUG is defined

Mike Frysinger vapier at gentoo.org
Tue Oct 4 02:51:39 CEST 2011


The new debug() changes pointed out debug code that rotted a little.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 drivers/spi/bfin_spi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/spi/bfin_spi.c b/drivers/spi/bfin_spi.c
index 213e792..e080bec 100644
--- a/drivers/spi/bfin_spi.c
+++ b/drivers/spi/bfin_spi.c
@@ -197,7 +197,7 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
 	spi_set_speed(&bss->slave, max_hz);
 
 	debug("%s: bus:%i cs:%i mmr:%x ctl:%x baud:%i flg:%i\n", __func__,
-		bus, cs, mmr_base, bss->ctl, baud, bss->flg);
+		bus, cs, mmr_base, bss->ctl, bss->baud, bss->flg);
 
 	return &bss->slave;
 }
-- 
1.7.6.1



More information about the U-Boot mailing list