[U-Boot] [PATCH] spi: cadence_qspi: Change to use devfdt_get_addr_index()
Jagan Teki
jagannadh.teki at gmail.com
Wed May 16 13:33:50 UTC 2018
On Mon, May 7, 2018 at 3:12 PM, Ley Foon Tan <ley.foon.tan at intel.com> wrote:
> Change to use devfdt_get_addr_index() function to get fdt address.
>
> Original code has compilation warning below:
>
> drivers/spi/cadence_qspi.c: In function ‘cadence_spi_ofdata_to_platdata’:
> drivers/spi/cadence_qspi.c:297:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> plat->regbase = (void *)data[0];
> ^
> drivers/spi/cadence_qspi.c:298:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> plat->ahbbase = (void *)data[2];
was this a coverage-tool check, I didn't see any warning with arm
compiler? make socfpga_arria5_defconfig && make
More information about the U-Boot
mailing list