From: Komal Shah Date: Sat, 25 Feb 2006 01:08:54 +0000 (-0800) Subject: [PATCH] ARM: OMAP: Irda: Remove warning X-Git-Tag: v2.6.16-omap1~49 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5cbebfc0569724d9b3d07b45f21cfa6fb597d97e;p=linux-2.6-omap-h63xx.git [PATCH] ARM: 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 Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index 680e67ed654..cae38740ee1 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_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,