[U-Boot] [PATCH v2 20/31] dm: tegra: pwm: Convert to livetree
Simon Glass
sjg at chromium.org
Sat Jun 3 03:04:15 UTC 2017
Update the tegra pwm driver to support a live device tree.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2: None
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.506.g27d5fe0cd-goog
More information about the U-Boot
mailing list