Skip to contentSkip to conversation

pinctrl: sh-pfc: sh73a0: Allow Multiplatform Build

PATCH In review Magnus Damm 1 participant 1 message May 7, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 pinctrl: sh-pfc: sh73a0: Allow Multiplatform Build

From: Magnus Damm <[email protected]>

Add #ifdefs to allow sh73a0 Multiplatform build. Needed to enable sh73a0 Multiplatform support.

---

 drivers/pinctrl/sh-pfc/pfc-sh73a0.c |    6 ++++++
 1 file changed, 6 insertions(+)
drivers/pinctrl/sh-pfc/pfc-sh73a0.c +6 -0
@@ -26,7 +26,9 @@
 #include <linux/regulator/machine.h>
 #include <linux/slab.h>
 
+#ifndef CONFIG_ARCH_MULTIPLATFORM
 #include <mach/irqs.h>
+#endif
 
 #include "core.h"
 #include "sh_pfc.h"
@@ -3650,6 +3652,7 @@ static const struct pinmux_data_reg pinm
 	{ },
 };
 
+#ifndef CONFIG_ARCH_MULTIPLATFORM
 static const struct pinmux_irq pinmux_irqs[] = {
 	PINMUX_IRQ(irq_pin(0), 11),
 	PINMUX_IRQ(irq_pin(1), 10),
@@ -3684,6 +3687,7 @@ static const struct pinmux_irq pinmux_ir
 	PINMUX_IRQ(irq_pin(30), 27),
 	PINMUX_IRQ(irq_pin(31), 26),
 };
+#endif /* CONFIG_ARCH_MULTIPLATFORM */
 
 /* -----------------------------------------------------------------------------
  * VCCQ MC0 regulator
@@ -3888,6 +3892,8 @@ const struct sh_pfc_soc_info sh73a0_pinm
 	.gpio_data = pinmux_data,
 	.gpio_data_size = ARRAY_SIZE(pinmux_data),
 
+#ifndef CONFIG_ARCH_MULTIPLATFORM
 	.gpio_irq = pinmux_irqs,
 	.gpio_irq_size = ARRAY_SIZE(pinmux_irqs),
+#endif
 };