]> git.sur5r.net Git - u-boot/commit
spi: cadence_qspi: Change to use devfdt_get_addr_index()
authorLey Foon Tan <ley.foon.tan@intel.com>
Mon, 7 May 2018 09:42:55 +0000 (17:42 +0800)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 4 Jun 2018 18:00:04 +0000 (23:30 +0530)
commit6c353674bd5219b1129e29d16484eb540e0d3925
treec78ed73ec64a09cc34e18e7adb5b118b02e5f45b
parent809e0e398a91db7bf8b4d6259d9bfc6fbd6bce83
spi: cadence_qspi: Change to use devfdt_get_addr_index()

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@intel.com>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/spi/cadence_qspi.c