]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/fsl-pci: Only scan PCI bus if configured as a host
authorJia Hongtao <B38951@freescale.com>
Fri, 3 Aug 2012 10:14:09 +0000 (18:14 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 23 Aug 2012 18:08:56 +0000 (13:08 -0500)
commitd35b2771c7ff2c6de96991b9d403a9063ba66600
tree0cd1ee715efe8cdb80e248cd6ebea25a28b22576
parentfea7a08acb13524b47711625eebea40a0ede69a0
powerpc/fsl-pci: Only scan PCI bus if configured as a host

We change fsl_add_bridge to return -ENODEV if the controller is working in
agent mode. Then check the return value of fsl_add_bridge to guarantee
that only successfully added host bus will be scanned.

Signed-off-by: Jia Hongtao <B38951@freescale.com>
Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/fsl_pci.c