[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1341118620.8998.1.camel@phoenix>
Date: Sun, 01 Jul 2012 12:57:00 +0800
From: Axel Lin <axel.lin@...il.com>
To: Thierry Reding <thierry.reding@...onic-design.de>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] pwm: pwm-bfin: Return proper error if pwmchip_remove()
fails
Signed-off-by: Axel Lin <axel.lin@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists