diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-07-01 00:58:00 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2012-07-23 07:24:01 -0400 |
commit | 457fd768ee1f7c78e85dfbe86329e6b24eb36514 (patch) | |
tree | 06893810db1a720a0667b1315975bcd5b8c60bd9 /drivers/pwm | |
parent | b50675dcc3402ea456a1d59855260fcfd800fb40 (diff) |
pwm: pwm-mxs: Return proper error if pwmchip_remove() fails
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-mxs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c index 269d7c2a87d6..e5852646f082 100644 --- a/drivers/pwm/pwm-mxs.c +++ b/drivers/pwm/pwm-mxs.c | |||
@@ -178,9 +178,7 @@ static int __devexit mxs_pwm_remove(struct platform_device *pdev) | |||
178 | { | 178 | { |
179 | struct mxs_pwm_chip *mxs = platform_get_drvdata(pdev); | 179 | struct mxs_pwm_chip *mxs = platform_get_drvdata(pdev); |
180 | 180 | ||
181 | pwmchip_remove(&mxs->chip); | 181 | return pwmchip_remove(&mxs->chip); |
182 | |||
183 | return 0; | ||
184 | } | 182 | } |
185 | 183 | ||
186 | static struct of_device_id mxs_pwm_dt_ids[] = { | 184 | static struct of_device_id mxs_pwm_dt_ids[] = { |