mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-01 04:11:36 +00:00
serial: sh: Replace fdtdec_get_addr() with devfdt_get_addr()
Replace fdtdec_get_addr() with devfdt_get_addr() as the later one is the current recommended practice. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
parent
b606e1bbc3
commit
c493756ab4
1 changed files with 2 additions and 2 deletions
|
@ -219,8 +219,8 @@ static int sh_serial_ofdata_to_platdata(struct udevice *dev)
|
||||||
fdt_addr_t addr;
|
fdt_addr_t addr;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
addr = fdtdec_get_addr(gd->fdt_blob, dev_of_offset(dev), "reg");
|
addr = devfdt_get_addr(dev);
|
||||||
if (addr == FDT_ADDR_T_NONE)
|
if (!addr)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
plat->base = addr;
|
plat->base = addr;
|
||||||
|
|
Loading…
Add table
Reference in a new issue