sh: Handle PCI controller resource conflicts.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 1 Feb 2010 04:11:25 +0000 (13:11 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 1 Feb 2010 04:11:25 +0000 (13:11 +0900)
commitbcf39352eb9e9026f7a1028d4bce3707b65f104b
tree440794a7fe888c48bfb49bdd994873ae8a136866
parent85b59f5bb24aeca1a987cbb206e228bf630c8327
sh: Handle PCI controller resource conflicts.

register_pci_controller() can fail, but presently is a void function.
Change this over to an int so that we can bail early before continuing on
with post-registration initialization (such as throwing the controller in
to 66MHz mode in the case of the SH7780 host controller).

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/drivers/pci/pci-dreamcast.c
arch/sh/drivers/pci/pci-sh5.c
arch/sh/drivers/pci/pci-sh7751.c
arch/sh/drivers/pci/pci-sh7780.c
arch/sh/drivers/pci/pci.c
arch/sh/drivers/pci/pcie-sh7786.c
arch/sh/include/asm/pci.h