]> git.karo-electronics.de Git - karo-tx-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>
Fri, 27 Apr 2012 13:41:01 +0000 (14:41 +0100)
commit38dba65313343f4470e4e22ebcdc71f296ea7e88
tree4193929e1a6279abc400392cc1e4a14b721f77ab
parentf900fa0f80c0292c4e718151051587772234ca50
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