]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap2/board-h4.c
[PATCH] ARM: OMAP: rework mutex_init() for RT compatibility
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / board-h4.c
index 20e513f0b98c48659ee316d844ee7cbaa094d4ff..10d378756acd3add03fffd15e574b0202ac750e6 100644 (file)
@@ -156,6 +156,7 @@ static struct platform_device h4_smc91x_device = {
 
 /* 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;
@@ -212,6 +213,10 @@ static int h4_transceiver_mode(struct device *dev, int mode)
 
        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,