[U-Boot] [PATCH 16/26] dm: tegra: pwm: Convert to livetree

Simon Glass sjg at chromium.org
Fri May 19 14:30:59 UTC 2017


Update the tegra pwm driver to support a live device tree.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

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

diff --git a/drivers/pwm/tegra_pwm.c b/drivers/pwm/tegra_pwm.c
index d93ac28c31..b8acc1583f 100644
--- a/drivers/pwm/tegra_pwm.c
+++ b/drivers/pwm/tegra_pwm.c
@@ -59,7 +59,7 @@ static int tegra_pwm_ofdata_to_platdata(struct udevice *dev)
 {
 	struct tegra_pwm_priv *priv = dev_get_priv(dev);
 
-	priv->regs = (struct pwm_ctlr *)devfdt_get_addr(dev);
+	priv->regs = (struct pwm_ctlr *)dev_read_addr(dev);
 
 	return 0;
 }
-- 
2.13.0.303.g4ebf302169-goog



More information about the U-Boot mailing list