From: Axel Lin <axel.lin@gmail.com>
To: Thierry Reding <thierry.reding@avionic-design.de>
Cc: linux-kernel@vger.kernel.org, Shawn Guo <shawn.guo@linaro.org>
Subject: [PATCH 2/2] pwm: pwm-mxs: Return proper error if pwmchip_remove() fails
Date: Sun, 01 Jul 2012 12:58:00 +0800 [thread overview]
Message-ID: <1341118680.8998.2.camel@phoenix> (raw)
In-Reply-To: <1341118620.8998.1.camel@phoenix>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/pwm/pwm-mxs.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/pwm/pwm-mxs.c b/drivers/pwm/pwm-mxs.c
index 269d7c2..e585264 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)
{
struct mxs_pwm_chip *mxs = platform_get_drvdata(pdev);
- pwmchip_remove(&mxs->chip);
-
- return 0;
+ return pwmchip_remove(&mxs->chip);
}
static struct of_device_id mxs_pwm_dt_ids[] = {
--
1.7.9.5
next prev parent reply other threads:[~2012-07-01 4:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-01 4:57 [PATCH 1/2] pwm: pwm-bfin: Return proper error if pwmchip_remove() fails Axel Lin
2012-07-01 4:58 ` Axel Lin [this message]
2012-07-01 14:09 ` [PATCH 2/2] pwm: pwm-mxs: " 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=1341118680.8998.2.camel@phoenix \
--to=axel.lin@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=shawn.guo@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.