1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

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>
This commit is contained in:
Masahiro Yamada
2020-08-04 14:14:42 +09:00
committed by Simon Glass
parent 0cbf3e08fc
commit 1450bff3e4

View File

@@ -39,7 +39,7 @@ static int mvebu_ahci_probe(struct udevice *dev)
*/
board_ahci_enable();
ahci_probe_scsi(dev, (ulong)devfdt_get_addr_ptr(dev));
ahci_probe_scsi(dev, dev_read_addr(dev));
return 0;
}