[U-Boot] [PATCH] rockchip: pwm: convert to use live dt

Kever Yang kever.yang at rock-chips.com
Thu Feb 8 13:15:21 UTC 2018


use live dt api to get base addr

Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
---

 drivers/pwm/rk_pwm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 }
-- 
1.9.1



More information about the U-Boot mailing list