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>
Šī revīzija ir iekļauta:
Paul Mundt
2010-02-01 13:11:25 +09:00
vecāks 85b59f5bb2
revīzija bcf39352eb
7 mainīti faili ar 12 papildinājumiem un 16 dzēšanām

Parādīt failu

@@ -95,8 +95,6 @@ static int __init gapspci_init(void)
outl(0x00002001, GAPSPCI_BBA_CONFIG+0x10);
outl(0x01000000, GAPSPCI_BBA_CONFIG+0x14);
register_pci_controller(&dreamcast_pci_controller);
return 0;
return register_pci_controller(&dreamcast_pci_controller);
}
arch_initcall(gapspci_init);