mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 07:08:07 +00:00
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: Fabrice Gasnier <fabrice.gasnier@st.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
parent
43725feb59
commit
2c2059c0b8
1 changed files with 1 additions and 3 deletions
|
@ -217,10 +217,8 @@ static int stm32_pwm_lp_probe(struct platform_device *pdev)
|
||||||
static int stm32_pwm_lp_remove(struct platform_device *pdev)
|
static int stm32_pwm_lp_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct stm32_pwm_lp *priv = platform_get_drvdata(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[0]);
|
||||||
pwm_disable(&priv->chip.pwms[i]);
|
|
||||||
|
|
||||||
return pwmchip_remove(&priv->chip);
|
return pwmchip_remove(&priv->chip);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue