From: Kever Yang Date: Thu, 8 Feb 2018 13:15:21 +0000 (+0800) Subject: rockchip: pwm: convert to use live dt X-Git-Tag: v2018.05-rc1~136^2~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f9326ec318e07841d7cd0c4e3fd0fc4b1eb15605;p=u-boot rockchip: pwm: convert to use live dt use live dt api to get base addr Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 2364c2dfdd..7d3e11d667 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; }