diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-11-17 09:48:48 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-11-24 03:01:40 -0500 |
commit | bede480d45f7257fa648b4c32a0549cfcca59b90 (patch) | |
tree | 54153884a9cf0d53f3b1ea556f39f6f8b97df92f /arch/powerpc/platforms/83xx/mpc83xx.h | |
parent | 7669d58c661b51f3c2b6bf0e93f230f0f7c2f597 (diff) |
powerpc/83xx: merge PCI bridge additions
Nearly all mpc83xx-based boards have a common piece of code - one that
loops over all pci/pcie bridges and registers them. Merge that code into
a special function common to all boards.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx/mpc83xx.h')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc83xx.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc83xx.h b/arch/powerpc/platforms/83xx/mpc83xx.h index a54f6baaae70..0cf74d7ea1c5 100644 --- a/arch/powerpc/platforms/83xx/mpc83xx.h +++ b/arch/powerpc/platforms/83xx/mpc83xx.h | |||
@@ -79,6 +79,12 @@ static inline void __init mpc83xx_qe_init_IRQ(void) {} | |||
79 | #define mpc83xx_ipic_and_qe_init_IRQ mpc83xx_ipic_init_IRQ | 79 | #define mpc83xx_ipic_and_qe_init_IRQ mpc83xx_ipic_init_IRQ |
80 | #endif /* CONFIG_QUICC_ENGINE */ | 80 | #endif /* CONFIG_QUICC_ENGINE */ |
81 | 81 | ||
82 | #ifdef CONFIG_PCI | ||
83 | extern void mpc83xx_setup_pci(void); | ||
84 | #else | ||
85 | #define mpc83xx_setup_pci() do {} while (0) | ||
86 | #endif | ||
87 | |||
82 | extern int mpc83xx_declare_of_platform_devices(void); | 88 | extern int mpc83xx_declare_of_platform_devices(void); |
83 | 89 | ||
84 | #endif /* __MPC83XX_H__ */ | 90 | #endif /* __MPC83XX_H__ */ |