public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: "Komal Shah" <komal_shah802003@yahoo.com>
To: linux-omap-open-source@linux.omap.com
Subject: [PATCH] ARM: OMAP: Fix gpio expander linking error
Date: Mon, 19 Jun 2006 07:05:05 -0700	[thread overview]
Message-ID: <1150725905.23380.264144249@webmail.messagingengine.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 182 bytes --]

This patch should be applied after my gpmc apis
patch for smc91x.

---Komal Shah
http://komalshah.blogspot.com

-- 
http://www.fastmail.fm - A no graphics, no pop-ups email service


[-- Attachment #2: 0001-fix-ir-build-err.patch --]
[-- Type: application/octet-stream, Size: 1478 bytes --]

From nobody Mon Sep 17 00:00:00 2001
From: Komal Shah <komal_shah802003@yahoo.com>
Date: Tue, 20 Jun 2006 01:01:44 +0530
Subject: [PATCH] ARM: OMAP: Fix the following gpio expander linking error,

generated when the mainline kernel is compiled with h4 defconfig.

: undefined reference to `read_gpio_expa'
arch/arm/mach-omap2/built-in.o(.text+0x186c): In function `$a':
: undefined reference to `write_gpio_expa'
arch/arm/mach-omap2/built-in.o(.text+0x18ac): In function `$a':

Signed-off-by: Komal Shah <komal_shah802003@yahoo.com>

---

 arch/arm/mach-omap2/board-h4.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

87013777d6e076b417e40952360f516dea109f40
diff --git a/arch/arm/mach-omap2/board-h4.c b/arch/arm/mach-omap2/board-h4.c
index 1143d8b..395101c 100644
--- a/arch/arm/mach-omap2/board-h4.c
+++ b/arch/arm/mach-omap2/board-h4.c
@@ -155,6 +155,7 @@ static struct platform_device h4_smc91x_
 
 /* Select between the IrDA and aGPS module
  */
+#if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE)
 static int h4_select_irda(struct device *dev, int state)
 {
 	unsigned char expa;
@@ -211,6 +212,10 @@ static int h4_transceiver_mode(struct de
 
 	return 0;
 }
+#else
+static int h4_select_irda(struct device *dev, int state) { return 0; }
+static int h4_transceiver_mode(struct device *dev, int mode) { return 0; }
+#endif
 
 static struct omap_irda_config h4_irda_data = {
 	.transceiver_cap	= IR_SIRMODE | IR_MIRMODE | IR_FIRMODE,
-- 
1.3.3


[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



                 reply	other threads:[~2006-06-19 14:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1150725905.23380.264144249@webmail.messagingengine.com \
    --to=komal_shah802003@yahoo.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