Commit 457fd768ee1f7c78e85dfbe86329e6b24eb36514

Authored by Axel Lin
Committed by Thierry Reding
1 parent b50675dcc3

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

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
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-mxs.c
... ... @@ -178,9 +178,7 @@
178 178 {
179 179 struct mxs_pwm_chip *mxs = platform_get_drvdata(pdev);
180 180  
181   - pwmchip_remove(&mxs->chip);
182   -
183   - return 0;
  181 + return pwmchip_remove(&mxs->chip);
184 182 }
185 183  
186 184 static struct of_device_id mxs_pwm_dt_ids[] = {