diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-07-01 00:57:00 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2012-07-23 07:24:00 -0400 |
commit | b50675dcc3402ea456a1d59855260fcfd800fb40 (patch) | |
tree | 495827e2a69370342f63ed59f7bda0b036a5d191 /drivers | |
parent | abeaf75527386adea831914579f0b8711287d3f8 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pwm/pwm-bfin.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-bfin.c b/drivers/pwm/pwm-bfin.c index a0c6bf9070ea..d53c4e7941ef 100644 --- a/drivers/pwm/pwm-bfin.c +++ b/drivers/pwm/pwm-bfin.c | |||
@@ -146,9 +146,7 @@ static int __devexit bfin_pwm_remove(struct platform_device *pdev) | |||
146 | { | 146 | { |
147 | struct bfin_pwm_chip *pwm = platform_get_drvdata(pdev); | 147 | struct bfin_pwm_chip *pwm = platform_get_drvdata(pdev); |
148 | 148 | ||
149 | pwmchip_remove(&pwm->chip); | 149 | return pwmchip_remove(&pwm->chip); |
150 | |||
151 | return 0; | ||
152 | } | 150 | } |
153 | 151 | ||
154 | static struct platform_driver bfin_pwm_driver = { | 152 | static struct platform_driver bfin_pwm_driver = { |