Commit b50675dc authored by Axel Lin's avatar Axel Lin Committed by Thierry Reding

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

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
parent abeaf755
......@@ -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 = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment