Message ID | 20151213002854.DC2D021533@mail.nwl.cc |
---|---|
State | Superseded |
Delegated to: | Prafulla Wadaskar |
Headers | show |
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);
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(+)