From: Simon Glass Date: Tue, 25 Jul 2017 14:30:07 +0000 (-0600) Subject: dm: tegra: pwm: Convert to livetree X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=4b0f21cf507a75d106ffc2f16c8814d8129a51c5;p=u-boot.git dm: tegra: pwm: Convert to livetree Update the tegra pwm driver to support a live device tree. Signed-off-by: Simon Glass Tested-by: Marcel Ziswiler Tested-on: Beaver, Jetson-TK1 Tested-by: Stephen Warren --- 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; }