mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
rockchip: pwm: convert to use live dt
use live dt api to get base addr Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
bbfef40f92
commit
f9326ec318
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ static int rk_pwm_ofdata_to_platdata(struct udevice *dev)
|
||||||
{
|
{
|
||||||
struct rk_pwm_priv *priv = dev_get_priv(dev);
|
struct rk_pwm_priv *priv = dev_get_priv(dev);
|
||||||
|
|
||||||
priv->regs = (struct rk3288_pwm *)devfdt_get_addr(dev);
|
priv->regs = (struct rk3288_pwm *)dev_read_addr(dev);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue