Skip to content

Commit

Permalink
pwm: pwm-mxs: Return proper error if pwmchip_remove() fails
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <[email protected]>
Acked-by: Shawn Guo <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
AxelLin authored and Thierry Reding committed Jul 23, 2012
1 parent b50675d commit 457fd76
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/pwm/pwm-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,7 @@ static int __devexit mxs_pwm_remove(struct platform_device *pdev)
{
struct mxs_pwm_chip *mxs = platform_get_drvdata(pdev);

pwmchip_remove(&mxs->chip);

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

static struct of_device_id mxs_pwm_dt_ids[] = {
Expand Down

0 comments on commit 457fd76

Please sign in to comment.