From 5cbebfc0569724d9b3d07b45f21cfa6fb597d97e Mon Sep 17 00:00:00 2001 From: Komal Shah Date: Fri, 24 Feb 2006 17:08:54 -0800 Subject: [PATCH] [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 --- arch/arm/mach-omap1/board-h2.c | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.41.1