]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commit
MIPS: ath79: add a common PCI registration function
authorGabor Juhos <juhosg@openwrt.org>
Wed, 14 Mar 2012 09:29:24 +0000 (10:29 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 15 May 2012 15:49:01 +0000 (17:49 +0200)
commit6335aef59c55f50e6d8017a28c0ee985b533ea29
treea1014ca9517a7df6e51f1f709b6b0f033a105b58
parent659243ccaf296ae122c159d4c573f93561e1b8d6
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>
arch/mips/ath79/mach-ubnt-xm.c
arch/mips/ath79/pci.c
arch/mips/ath79/pci.h
arch/mips/pci/pci-ath724x.c