diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-03-14 05:29:24 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-05-15 11:49:01 -0400 |
commit | 6335aef59c55f50e6d8017a28c0ee985b533ea29 (patch) | |
tree | a1014ca9517a7df6e51f1f709b6b0f033a105b58 /arch/mips/pci | |
parent | 659243ccaf296ae122c159d4c573f93561e1b8d6 (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/pci')
-rw-r--r-- | arch/mips/pci/pci-ath724x.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/mips/pci/pci-ath724x.c b/arch/mips/pci/pci-ath724x.c index be01b7f8d840..ebefc165fae6 100644 --- a/arch/mips/pci/pci-ath724x.c +++ b/arch/mips/pci/pci-ath724x.c | |||
@@ -137,5 +137,3 @@ int __init ath724x_pcibios_init(void) | |||
137 | 137 | ||
138 | return PCIBIOS_SUCCESSFUL; | 138 | return PCIBIOS_SUCCESSFUL; |
139 | } | 139 | } |
140 | |||
141 | arch_initcall(ath724x_pcibios_init); | ||