All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP: Fix gpio expander linking error
@ 2006-06-19 14:05 Komal Shah
  0 siblings, 0 replies; only message in thread
From: Komal Shah @ 2006-06-19 14:05 UTC (permalink / raw)
  To: linux-omap-open-source

[-- 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 --]



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-19 14:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-19 14:05 [PATCH] ARM: OMAP: Fix gpio expander linking error Komal Shah

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.