]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM: OMAP: Irda: Remove warning
authorKomal Shah <komal_shah802003@yahoo.com>
Sat, 25 Feb 2006 01:08:54 +0000 (17:08 -0800)
committerTony Lindgren <tony@atomide.com>
Sat, 25 Feb 2006 01:08:54 +0000 (17:08 -0800)
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-h2.c

index 680e67ed654a1c53aaef631cc48161a6fe35ee88..cae38740ee125101ece079b1dff8b8465388ee17 100644 (file)
@@ -240,6 +240,7 @@ static struct platform_device h2_kp_device = {
 
 #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 device *dev, int state)
 
        return 0;
 }
+#endif
 
 static struct omap_irda_config h2_irda_data = {
        .transceiver_cap        = IR_SIRMODE | IR_MIRMODE | IR_FIRMODE,