mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
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>
This commit is contained in:
parent
abeaf75527
commit
b50675dcc3
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user