From: Axel Lin <axel.lin@gmail.com>
To: Thierry Reding <thierry.reding@avionic-design.de>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] pwm: pwm-bfin: Return proper error if pwmchip_remove() fails
Date: Sun, 01 Jul 2012 12:57:00 +0800 [thread overview]
Message-ID: <1341118620.8998.1.camel@phoenix> (raw)
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
next reply other threads:[~2012-07-01 4:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-01 4:57 Axel Lin [this message]
2012-07-01 4:58 ` [PATCH 2/2] pwm: pwm-mxs: Return proper error if pwmchip_remove() fails Axel Lin
2012-07-01 14:09 ` Shawn Guo
2012-07-02 20:47 ` Thierry Reding
2012-07-02 20:47 ` [PATCH 1/2] pwm: pwm-bfin: " Thierry Reding
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1341118620.8998.1.camel@phoenix \
--to=axel.lin@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=thierry.reding@avionic-design.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox