From: Simon Glass Date: Tue, 25 Jul 2017 14:30:07 +0000 (-0600) Subject: dm: tegra: pwm: Convert to livetree X-Git-Tag: baikal/mips/sdk5.9~4211 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=95d60d19f23671b354f21c4a49d8716f6af87123;p=uboot.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; }