[U-Boot] [PATCH 02/11] drivers/spi/kirkwood_spi: Fix debugging with CONFIG_DM_SPI
Phil Sutter
phil at nwl.cc
Sun Dec 13 01:29:50 CET 2015
The debug printing tries to reference slave->bus and slave->cs which
don't exist when CONFIG_DM_SPI is defined.
Signed-off-by: Phil Sutter <phil at nwl.cc>
---
drivers/spi/kirkwood_spi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/spi/kirkwood_spi.c b/drivers/spi/kirkwood_spi.c
index e7b0982..0439bb2 100644
--- a/drivers/spi/kirkwood_spi.c
+++ b/drivers/spi/kirkwood_spi.c
@@ -161,8 +161,10 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
unsigned int tmpdout, tmpdin;
int tm, isread = 0;
+#ifndef CONFIG_DM_SPI
debug("spi_xfer: slave %u:%u dout %p din %p bitlen %u\n",
slave->bus, slave->cs, dout, din, bitlen);
+#endif
if (flags & SPI_XFER_BEGIN)
spi_cs_activate(slave);
--
2.5.3
More information about the U-Boot
mailing list