aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/ath79/pci.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-03-14 05:29:24 -0400
committerRalf Baechle <ralf@linux-mips.org>2012-05-15 11:49:01 -0400
commit6335aef59c55f50e6d8017a28c0ee985b533ea29 (patch)
treea1014ca9517a7df6e51f1f709b6b0f033a105b58 /arch/mips/ath79/pci.h
parent659243ccaf296ae122c159d4c573f93561e1b8d6 (diff)
MIPS: ath79: add a common PCI registration function
The current code unconditionally registers the AR724X specific PCI controller, even if the kernel is running on a different SoC. Add a common function for PCI controller registration, and only register the AR724X PCI controller if the kernel is running on an AR724X SoC. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/3488/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ath79/pci.h')
-rw-r--r--arch/mips/ath79/pci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/ath79/pci.h b/arch/mips/ath79/pci.h
index 454885fa30c3..787fac2c08f0 100644
--- a/arch/mips/ath79/pci.h
+++ b/arch/mips/ath79/pci.h
@@ -18,4 +18,10 @@ struct ath724x_pci_data {
18 18
19void ath724x_pci_add_data(struct ath724x_pci_data *data, int size); 19void ath724x_pci_add_data(struct ath724x_pci_data *data, int size);
20 20
21#ifdef CONFIG_PCI
22int ath79_register_pci(void);
23#else
24static inline int ath79_register_pci(void) { return 0; }
25#endif
26
21#endif /* __ASM_MACH_ATH79_PCI_ATH724X_H */ 27#endif /* __ASM_MACH_ATH79_PCI_ATH724X_H */