summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
-rw-r--r--drivers/pwm/pwm-stm32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-stm32.c b/drivers/pwm/pwm-stm32.c
index 4f842550fbd1..740e2dec8313 100644
--- a/drivers/pwm/pwm-stm32.c
+++ b/drivers/pwm/pwm-stm32.c
@@ -608,6 +608,8 @@ static int stm32_pwm_probe(struct platform_device *pdev)
608 priv->regmap = ddata->regmap; 608 priv->regmap = ddata->regmap;
609 priv->clk = ddata->clk; 609 priv->clk = ddata->clk;
610 priv->max_arr = ddata->max_arr; 610 priv->max_arr = ddata->max_arr;
611 priv->chip.of_xlate = of_pwm_xlate_with_flags;
612 priv->chip.of_pwm_n_cells = 3;
611 613
612 if (!priv->regmap || !priv->clk) 614 if (!priv->regmap || !priv->clk)
613 return -EINVAL; 615 return -EINVAL;