Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f83e2ae2 authored by Axel Lin's avatar Axel Lin Committed by Thierry Reding
Browse files

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: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarFabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 424268c7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -219,7 +219,6 @@ 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]);

	return pwmchip_remove(&priv->chip);