diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2018-02-08 21:15:21 +0800 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2018-03-13 18:12:35 +0100 |
commit | f9326ec318e07841d7cd0c4e3fd0fc4b1eb15605 (patch) | |
tree | 7477c3bf1c95fbad99346698421c7d3bbf25e3b6 /drivers/pwm | |
parent | bbfef40f92983fd0ccd72577020a434d04165400 (diff) | |
download | u-boot-f9326ec318e07841d7cd0c4e3fd0fc4b1eb15605.zip u-boot-f9326ec318e07841d7cd0c4e3fd0fc4b1eb15605.tar.gz u-boot-f9326ec318e07841d7cd0c4e3fd0fc4b1eb15605.tar.bz2 |
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>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/rk_pwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 2364c2d..7d3e11d 100644 --- a/drivers/pwm/rk_pwm.c +++ b/drivers/pwm/rk_pwm.c @@ -76,7 +76,7 @@ static int rk_pwm_ofdata_to_platdata(struct udevice *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; } |