Merge branch 'master' of git://git.denx.de/u-boot-spi
authorTom Rini <trini@konsulko.com>
Wed, 30 May 2018 18:51:37 +0000 (14:51 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 May 2018 18:51:37 +0000 (14:51 -0400)
- Fix a conflict in drivers/spi/atcspi200_spi.c related to the riscv
  tree fixing a warning.

Signed-off-by: Tom Rini <trini@konsulko.com>
1  2 
drivers/spi/atcspi200_spi.c

index be424e0a6f823a9d70cee41beb9dad178ab6dd95,6233d4978f5395f7e7fa3c959267ac3ec65dda53..af96c6d21e5c5e04220c2936e8586f5b192b4691
@@@ -229,8 -229,10 +229,10 @@@ static int __atcspi200_spi_xfer(struct 
                        __atcspi200_spi_start(ns);
                        break;
                }
-               debug("spi_xfer: data_out %08X(%p) data_in %08X(%p) data_len %lu\n",
-                     *(uint *)data_out, data_out, *(uint *)data_in, data_in, data_len);
+               if (data_out)
 -                      debug("spi_xfer: data_out %08X(%p) data_in %08X(%p) data_len %u\n",
++                      debug("spi_xfer: data_out %08X(%p) data_in %08X(%p) data_len %lu\n",
+                             *(uint *)data_out, data_out, *(uint *)data_in,
+                             data_in, data_len);
                num_chunks = DIV_ROUND_UP(data_len, max_tran_len);
                din = data_in;
                dout = data_out;