public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Make H2 board file compile without irda warning
@ 2006-02-21 17:54 Daniel Petrini
  2006-02-21 21:28 ` Komal Shah
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Petrini @ 2006-02-21 17:54 UTC (permalink / raw)
  To: OMAP-Linux

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

Hi,

The board file for H2 is generating a warning if compiled without
InfraRed selection.

This patch changes the location where the function h2_transceiver_mode
is assigned to structure h2_irda_data, thereby preventing the warning.

Signed-off-by Daniel Petrini <d.pensator_at_gmail.com>

Daniel Petrini
--
INdT - Manaus - Brazil

[-- Attachment #2: h2-irda-compile.patch --]
[-- Type: text/x-patch, Size: 1076 bytes --]

Index: linux-omap-2.6.git-q/arch/arm/mach-omap1/board-h2.c
===================================================================
--- linux-omap-2.6.git-q.orig/arch/arm/mach-omap1/board-h2.c	2006-02-21 10:11:01.000000000 -0400
+++ linux-omap-2.6.git-q/arch/arm/mach-omap1/board-h2.c	2006-02-21 11:28:18.000000000 -0400
@@ -252,6 +252,7 @@ static int h2_transceiver_mode(struct de
 
 static struct omap_irda_config h2_irda_data = {
 	.transceiver_cap	= IR_SIRMODE | IR_MIRMODE | IR_FIRMODE,
+	.transceiver_mode	= h2_transceiver_mode,
 };
 
 static struct resource h2_irda_resources[] = {
@@ -377,10 +378,8 @@ static void __init h2_init(void)
 	/* Irda */
 #if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE)
 	omap_writel(omap_readl(FUNC_MUX_CTRL_A) | 7, FUNC_MUX_CTRL_A);
-	if (!(omap_request_gpio(H2_IRDA_FIRSEL_GPIO_PIN))) {
+	if (!(omap_request_gpio(H2_IRDA_FIRSEL_GPIO_PIN)))
 		omap_set_gpio_direction(H2_IRDA_FIRSEL_GPIO_PIN, 0);
-		h2_irda_data.transceiver_mode = h2_transceiver_mode;
-	}
 #endif
 
 	platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices));




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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-02-25  1:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox