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:
@@ -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);
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user