diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-04-10 03:52:06 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-05-11 11:55:25 +0200 |
commit | 5af7a6f3e2d015dcaaeffa48c6d47238415cbe66 (patch) | |
tree | 0de0b00c76536652f3bae4ed86e8b3083e92cf3f /arch/powerpc/sysdev/mpic.h | |
parent | powerpc: Make STRICT_MM_TYPECHECKS a config option (diff) | |
download | linux-5af7a6f3e2d015dcaaeffa48c6d47238415cbe66.tar.xz 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 'arch/powerpc/sysdev/mpic.h')
-rw-r--r-- | arch/powerpc/sysdev/mpic.h | 10 |
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); |