From: Masahiro Yamada Date: Tue, 4 Aug 2020 05:14:42 +0000 (+0900) Subject: ata: mvebu: use dev_read_addr() to get base address X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=1450bff3e4719d1b34189bf62ad19d0e3c10a548;p=u-boot.git 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 Reviewed-by: Stefan Roese --- diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index 8be1826d40..7d82d2ea3f 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c @@ -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; }