summaryrefslogtreecommitdiff
path: root/drivers/pwm/tegra_pwm.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-07-25 08:30:07 -0600
committerSimon Glass <sjg@chromium.org>2017-07-28 12:02:47 -0600
commit4b0f21cf507a75d106ffc2f16c8814d8129a51c5 (patch)
treeea3a437cf7efa624778ed2e0d4b523aa7e1e7f4f /drivers/pwm/tegra_pwm.c
parentd8554d0853ec975f298e349fce27933c335062ea (diff)
dm: tegra: pwm: Convert to livetree
Update the tegra pwm driver to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1 Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'drivers/pwm/tegra_pwm.c')
-rw-r--r--drivers/pwm/tegra_pwm.c2
1 files changed, 1 insertions, 1 deletions
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;
}