diff options
author | Simon Glass <sjg@chromium.org> | 2017-07-25 08:30:07 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-07-28 12:02:47 -0600 |
commit | 4b0f21cf507a75d106ffc2f16c8814d8129a51c5 (patch) | |
tree | ea3a437cf7efa624778ed2e0d4b523aa7e1e7f4f | |
parent | d8554d0853ec975f298e349fce27933c335062ea (diff) | |
download | u-boot-4b0f21cf507a75d106ffc2f16c8814d8129a51c5.zip u-boot-4b0f21cf507a75d106ffc2f16c8814d8129a51c5.tar.gz u-boot-4b0f21cf507a75d106ffc2f16c8814d8129a51c5.tar.bz2 |
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>
-rw-r--r-- | drivers/pwm/tegra_pwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/tegra_pwm.c b/drivers/pwm/tegra_pwm.c index d93ac28..b8acc15 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; } |