summaryrefslogtreecommitdiff
path: root/drivers/pwm/tegra_pwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm/tegra_pwm.c')
-rw-r--r--drivers/pwm/tegra_pwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pwm/tegra_pwm.c b/drivers/pwm/tegra_pwm.c
index 29c9ce366c..36c35c608b 100644
--- a/drivers/pwm/tegra_pwm.c
+++ b/drivers/pwm/tegra_pwm.c
@@ -53,7 +53,7 @@ static int tegra_pwm_set_enable(struct udevice *dev, uint channel, bool enable)
return 0;
}
-static int tegra_pwm_ofdata_to_platdata(struct udevice *dev)
+static int tegra_pwm_of_to_plat(struct udevice *dev)
{
struct tegra_pwm_priv *priv = dev_get_priv(dev);
@@ -78,6 +78,6 @@ U_BOOT_DRIVER(tegra_pwm) = {
.id = UCLASS_PWM,
.of_match = tegra_pwm_ids,
.ops = &tegra_pwm_ops,
- .ofdata_to_platdata = tegra_pwm_ofdata_to_platdata,
+ .of_to_plat = tegra_pwm_of_to_plat,
.priv_auto = sizeof(struct tegra_pwm_priv),
};