lkml.org 
[lkml]   [2012]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 1/2] pwm: pwm-bfin: Return proper error if pwmchip_remove() fails
From
Date
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/pwm/pwm-bfin.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/pwm/pwm-bfin.c b/drivers/pwm/pwm-bfin.c
index a0c6bf9..d53c4e7 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)
{
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 = {
--
1.7.9.5




\
 
 \ /
  Last update: 2012-07-01 07:42    [W:0.045 / U:3.724 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site