Commit b50675dcc3402ea456a1d59855260fcfd800fb40

Authored by Axel Lin
Committed by Thierry Reding
1 parent abeaf75527

pwm: pwm-bfin: Return proper error if pwmchip_remove() fails

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>

Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff

drivers/pwm/pwm-bfin.c
... ... @@ -146,9 +146,7 @@
146 146 {
147 147 struct bfin_pwm_chip *pwm = platform_get_drvdata(pdev);
148 148  
149   - pwmchip_remove(&pwm->chip);
150   -
151   - return 0;
  149 + return pwmchip_remove(&pwm->chip);
152 150 }
153 151  
154 152 static struct platform_driver bfin_pwm_driver = {