[U-Boot] [PATCH] rockchip: spi: Correct a build warning in a debug()

Simon Glass sjg at chromium.org
Fri Jan 15 02:14:24 CET 2016


Fix a debug() type mismatch warning.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/spi/rk_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c
index 5e0c6ad..c3a71ec 100644
--- a/drivers/spi/rk_spi.c
+++ b/drivers/spi/rk_spi.c
@@ -136,7 +136,7 @@ static int rockchip_spi_ofdata_to_platdata(struct udevice *bus)
 	plat->deactivate_delay_us = fdtdec_get_int(blob, node,
 					"spi-deactivate-delay", 0);
 	debug("%s: base=%x, periph_id=%d, max-frequency=%d, deactivate_delay=%d\n",
-	      __func__, plat->base, plat->periph_id, plat->frequency,
+	      __func__, (uint)plat->base, plat->periph_id, plat->frequency,
 	      plat->deactivate_delay_us);
 
 	return 0;
-- 
2.6.0.rc2.230.g3dd15c0



More information about the U-Boot mailing list