Commit 2c2059c0 authored by Fabrice Gasnier's avatar Fabrice Gasnier Committed by Thierry Reding

pwm: stm32-lp: Remove useless loop in stm32_pwm_lp_remove()

LPTimer has only one pwm channel (npwm = 1). Remove useless for loop
in remove routine.
Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 43725feb
......@@ -217,10 +217,8 @@ static int stm32_pwm_lp_probe(struct platform_device *pdev)
static int stm32_pwm_lp_remove(struct platform_device *pdev)
{
struct stm32_pwm_lp *priv = platform_get_drvdata(pdev);
unsigned int i;
for (i = 0; i < priv->chip.npwm; i++)
pwm_disable(&priv->chip.pwms[i]);
pwm_disable(&priv->chip.pwms[0]);
return pwmchip_remove(&priv->chip);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment