]> git.baikalelectronics.ru Git - uboot.git/commit
ata: mvebu: use dev_read_addr() to get base address
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 4 Aug 2020 05:14:42 +0000 (14:14 +0900)
committerSimon Glass <sjg@chromium.org>
Sat, 22 Aug 2020 14:51:44 +0000 (08:51 -0600)
commiteacd8a95d4dcd1f47841cf0c64500b9fd79e8089
tree712e60fbf05dc3824493374939eff46176f58189
parent0fbd7bbcc6bb57147c7567eec8e3c8f79d0e3815
ata: mvebu: use dev_read_addr() to get base address

It is strange to use devfdt_get_addr_ptr(), then cast the pointer
back to ulong because you could use devfdt_get_addr() without casting.

Convert it to dev_read_addr(), which is capable to CONFIG_OF_LIVE.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/ata/ahci_mvebu.c