提交 f83e2ae2 编写于 作者: A Axel Lin 提交者: Thierry Reding

pwm: stm32-lp: Remove pwm_is_enabled() check before calling pwm_disable()

The same checking is done by the implementation of pwm_disable().
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Acked-by: NFabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
上级 424268c7
......@@ -219,8 +219,7 @@ static int stm32_pwm_lp_remove(struct platform_device *pdev)
unsigned int i;
for (i = 0; i < priv->chip.npwm; i++)
if (pwm_is_enabled(&priv->chip.pwms[i]))
pwm_disable(&priv->chip.pwms[i]);
pwm_disable(&priv->chip.pwms[i]);
return pwmchip_remove(&priv->chip);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册