From: Komal Shah <komal_shah802003@yahoo.com>
To: Daniel Petrini <d.pensator@gmail.com>,
OMAP-Linux <linux-omap-open-source@linux.omap.com>
Subject: Re: [PATCH] Make H2 board file compile without irda warning
Date: Tue, 21 Feb 2006 13:54:26 -0800 (PST) [thread overview]
Message-ID: <20060221215426.68231.qmail@web32903.mail.mud.yahoo.com> (raw)
In-Reply-To: <20060221212838.67357.qmail@web32905.mail.mud.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 760 bytes --]
--- Komal Shah <komal_shah802003@yahoo.com> wrote:
>
> True, the warning will be generated, but I added that check
> considering
> that transceiver_mode function will be active only if we are
> successfully able to request that GPIO. So, I am _not_ sure, but it
> is
> better to #ifdef around the h2_transceiver_mode(...) function. What
> do
> you think?
>
And here comes the patch.
OMAP: Irda: Remove warning
arch/arm/mach-omap1/board-h2.c:244: warning: 'h2_transceiver_mode'
defined but not used.
Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>
---Komal Shah
http://komalshah.blogspot.com/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[-- Attachment #2: 390387012-h2Irda.patch --]
[-- Type: application/octet-stream, Size: 634 bytes --]
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c
index 680e67e..cbc7674 100644
--- a/arch/arm/mach-omap1/board-h2.c
+++ b/arch/arm/mach-omap1/board-h2.c
@@ -240,6 +240,7 @@ static struct platform_device h2_kp_devi
#define H2_IRDA_FIRSEL_GPIO_PIN 17
+#if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE)
static int h2_transceiver_mode(struct device *dev, int state)
{
if (state & IR_SIRMODE)
@@ -249,6 +250,7 @@ static int h2_transceiver_mode(struct de
return 0;
}
+#endif
static struct omap_irda_config h2_irda_data = {
.transceiver_cap = IR_SIRMODE | IR_MIRMODE | IR_FIRMODE,
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2006-02-21 21:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-21 17:54 [PATCH] Make H2 board file compile without irda warning Daniel Petrini
2006-02-21 21:28 ` Komal Shah
2006-02-21 21:54 ` Komal Shah [this message]
2006-02-22 13:18 ` Daniel Petrini
2006-02-22 13:40 ` Daniel Petrini
2006-02-22 16:16 ` Komal Shah
2006-02-25 1:10 ` Tony Lindgren
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=20060221215426.68231.qmail@web32903.mail.mud.yahoo.com \
--to=komal_shah802003@yahoo.com \
--cc=d.pensator@gmail.com \
--cc=linux-omap-open-source@linux.omap.com \
/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