Skip to content

Commit

Permalink
pwm: pwm-bfin: Return proper error if pwmchip_remove() fails
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
  • Loading branch information
Axel Lin authored and Thierry Reding committed Jul 23, 2012
1 parent abeaf75 commit b50675d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/pwm/pwm-bfin.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ static int __devexit bfin_pwm_remove(struct platform_device *pdev)
{
struct bfin_pwm_chip *pwm = platform_get_drvdata(pdev);

pwmchip_remove(&pwm->chip);

return 0;
return pwmchip_remove(&pwm->chip);
}

static struct platform_driver bfin_pwm_driver = {
Expand Down

0 comments on commit b50675d

Please sign in to comment.