[U-Boot] [PATCH] spi: cadence_qspi: Change to use devfdt_get_addr_index()

Jagan Teki jagannadh.teki at gmail.com
Fri Jun 1 17:02:53 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];
>                   ^
> Signed-off-by: Ley Foon Tan <ley.foon.tan at intel.com>
> ---

Reviewed-by: Jagan Teki <jagan at openedev.com>

Applied to u-boot-spi/master


More information about the U-Boot mailing list