]> git.sur5r.net Git - u-boot/commitdiff
lib/fdtdec: Fix compiling warning caused by changing fdt_addr_t type
authorYork Sun <yorksun@freescale.com>
Mon, 3 Aug 2015 19:02:05 +0000 (12:02 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Aug 2015 13:31:13 +0000 (07:31 -0600)
fdt_addr_t is changed to phys_addr_t. The format in debug should be updated
to %pa to match the type.

Signed-off-by: York Sun <yorksun@freescale.com>
CC: Simon Glass <sjg@chromium.org>
drivers/pci/pci_tegra.c
drivers/spi/fsl_dspi.c
drivers/video/tegra.c

index 67b5fdf07c5ad833c03d00981392555a9adc9e71..ebb959f1f31f079206424eb1ff2e2b52aa481ee4 100644 (file)
@@ -445,11 +445,11 @@ static int tegra_pcie_parse_dt_ranges(const void *fdt, int node,
        }
 
        debug("PCI regions:\n");
-       debug("  I/O: %#x-%#x\n", pcie->io.start, pcie->io.end);
-       debug("  non-prefetchable memory: %#x-%#x\n", pcie->mem.start,
-             pcie->mem.end);
-       debug("  prefetchable memory: %#x-%#x\n", pcie->prefetch.start,
-             pcie->prefetch.end);
+       debug("  I/O: %pa-%pa\n", &pcie->io.start, &pcie->io.end);
+       debug("  non-prefetchable memory: %pa-%pa\n", &pcie->mem.start,
+             &pcie->mem.end);
+       debug("  prefetchable memory: %pa-%pa\n", &pcie->prefetch.start,
+             &pcie->prefetch.end);
 
        return 0;
 }
index 792853192ed78fc661b467d2f5c21405f97bdd47..3881b2e8a54630938667d08ca911a5f06854542d 100644 (file)
@@ -664,8 +664,8 @@ static int fsl_dspi_ofdata_to_platdata(struct udevice *bus)
        plat->speed_hz = fdtdec_get_int(blob,
                        node, "spi-max-frequency", FSL_DSPI_DEFAULT_SCK_FREQ);
 
-       debug("DSPI: regs=0x%llx, max-frequency=%d, endianess=%s, num-cs=%d\n",
-             (u64)plat->regs_addr, plat->speed_hz,
+       debug("DSPI: regs=%pa, max-frequency=%d, endianess=%s, num-cs=%d\n",
+             &plat->regs_addr, plat->speed_hz,
              plat->flags & DSPI_FLAG_REGMAP_ENDIAN_BIG ? "be" : "le",
              plat->num_chipselect);
 
index b8f3431f242339c96cd0a9e28fffa435b4aef0fa..33c61039943bb21012b240e890389795fb78da29 100644 (file)
@@ -92,7 +92,7 @@ void lcd_ctrl_init(void *lcdbase)
        /* Enable flushing after LCD writes if requested */
        lcd_set_flush_dcache(config.cache_type & FDT_LCD_CACHE_FLUSH);
 
-       debug("LCD frame buffer at %08X\n", disp_config->frame_buffer);
+       debug("LCD frame buffer at %pa\n", &disp_config->frame_buffer);
 }
 
 ulong calc_fbsize(void)