[U-Boot] [PATCH 02/11] drivers/spi/kirkwood_spi: Fix debugging with CONFIG_DM_SPI

13 Dec
2015
13 Dec
'15
1:29 a.m.
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@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
3437
Age (days ago)
3437
Last active (days ago)
0 comments
1 participants
participants (1)
-
Phil Sutter