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>
Fri, 3 Aug 2012 13:25:52 +0000 (08:25 -0500)
commitc9f11c30374329a0d2a88cf05281ca49d8eca9ab
treef0d18ba0e1f589ef8e7c70689fe25848867310ca
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee
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