From: Joonyoung Shim <jy0922.shim@samsung.com>
To: linux-input@vger.kernel.org
Cc: dmitry.torokhov@gmail.com, broonie@opensource.wolfsonmicro.com
Subject: [PATCH] Input: wm97xx - use EBUSY instead of EINVAL
Date: Wed, 03 Jun 2009 14:45:15 +0900 [thread overview]
Message-ID: <4A260DEB.2040306@samsung.com> (raw)
If request_irq() fails, we have to return -EBUSY instead of -EINVAL.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
---
drivers/input/touchscreen/wm97xx-core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/input/touchscreen/wm97xx-core.c b/drivers/input/touchscreen/wm97xx-core.c
index 2957d48..06cc8cf 100644
--- a/drivers/input/touchscreen/wm97xx-core.c
+++ b/drivers/input/touchscreen/wm97xx-core.c
@@ -375,7 +375,7 @@ static int wm97xx_init_pen_irq(struct wm97xx *wm)
dev_err(wm->dev,
"Failed to register pen down interrupt, polling");
wm->pen_irq = 0;
- return -EINVAL;
+ return -EBUSY;
}
/* Configure GPIO as interrupt source on WM971x */
--
1.6.0.4
next reply other threads:[~2009-06-03 5:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-03 5:45 Joonyoung Shim [this message]
2009-06-03 10:01 ` [PATCH] Input: wm97xx - use EBUSY instead of EINVAL Mark Brown
2009-06-03 14:19 ` Dmitry Torokhov
2009-06-03 14:40 ` Mark Brown
2009-06-03 14:48 ` Dmitry Torokhov
2009-06-04 1:26 ` Joonyoung Shim
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=4A260DEB.2040306@samsung.com \
--to=jy0922.shim@samsung.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
/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.