|
@@ -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[i]);
|
|
|
|
|
|
+ pwm_disable(&priv->chip.pwms[0]);
|
|
|
|
|
|
return pwmchip_remove(&priv->chip);
|
|
return pwmchip_remove(&priv->chip);
|
|
}
|
|
}
|