aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/powerpc/sysdev/mpic.h
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2015-04-10 11:52:06 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2015-05-11 19:55:25 +1000
commit5af7a6f3e2d015dcaaeffa48c6d47238415cbe66 (patch)
tree0de0b00c76536652f3bae4ed86e8b3083e92cf3f /arch/powerpc/sysdev/mpic.h
parentpowerpc: Make STRICT_MM_TYPECHECKS a config option (diff)
downloadwireguard-linux-5af7a6f3e2d015dcaaeffa48c6d47238415cbe66.tar.xz
wireguard-linux-5af7a6f3e2d015dcaaeffa48c6d47238415cbe66.zip
powerpc/pasemi: Only the build the pasemi MSI code for PASEMI=y
The pasemi MSI code is currently always built when MPIC=y && PCI_MSI=y. It should not have any effect on other platforms, because it immediately checks the MPIC's compatible property for "pasemi,pwrficient-openpic". However it's odd that it's still built even when PASEMI=n. It also needn't be in sysdev, as it's only used by pasemi. So move it into platforms/pasemi, whereby it will only be built for PASEMI=y. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to '')
-rw-r--r--arch/powerpc/sysdev/mpic.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/sysdev/mpic.h b/arch/powerpc/sysdev/mpic.h
index 24bf07a63924..32971a41853b 100644
--- a/arch/powerpc/sysdev/mpic.h
+++ b/arch/powerpc/sysdev/mpic.h
@@ -15,7 +15,6 @@
extern void mpic_msi_reserve_hwirq(struct mpic *mpic, irq_hw_number_t hwirq);
extern int mpic_msi_init_allocator(struct mpic *mpic);
extern int mpic_u3msi_init(struct mpic *mpic);
-extern int mpic_pasemi_msi_init(struct mpic *mpic);
#else
static inline void mpic_msi_reserve_hwirq(struct mpic *mpic,
irq_hw_number_t hwirq)
@@ -27,11 +26,12 @@ static inline int mpic_u3msi_init(struct mpic *mpic)
{
return -1;
}
+#endif
-static inline int mpic_pasemi_msi_init(struct mpic *mpic)
-{
- return -1;
-}
+#if defined(CONFIG_PCI_MSI) && defined(CONFIG_PPC_PASEMI)
+int mpic_pasemi_msi_init(struct mpic *mpic);
+#else
+static inline int mpic_pasemi_msi_init(struct mpic *mpic) { return -1; }
#endif
extern int mpic_set_irq_type(struct irq_data *d, unsigned int flow_type);