mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
timer: cadence: Use live-tree functions
Use live-tree functions. Reported-by: Simon Glass <sjg@chromium.org> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f01ef0ae63
commit
72b88103bb
1 changed files with 3 additions and 1 deletions
|
@ -64,8 +64,10 @@ static int cadence_ttc_ofdata_to_platdata(struct udevice *dev)
|
|||
{
|
||||
struct cadence_ttc_priv *priv = dev_get_priv(dev);
|
||||
|
||||
priv->regs = map_physmem(devfdt_get_addr(dev),
|
||||
priv->regs = map_physmem(dev_read_addr(dev),
|
||||
sizeof(struct cadence_ttc_regs), MAP_NOCACHE);
|
||||
if (IS_ERR(priv->regs))
|
||||
return PTR_ERR(priv->regs);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue