diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-31 23:11:25 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-31 23:11:25 -0500 |
commit | bcf39352eb9e9026f7a1028d4bce3707b65f104b (patch) | |
tree | 440794a7fe888c48bfb49bdd994873ae8a136866 /arch/sh/drivers/pci/pci-sh5.c | |
parent | 85b59f5bb24aeca1a987cbb206e228bf630c8327 (diff) |
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>
Diffstat (limited to 'arch/sh/drivers/pci/pci-sh5.c')
-rw-r--r-- | arch/sh/drivers/pci/pci-sh5.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/sh/drivers/pci/pci-sh5.c b/arch/sh/drivers/pci/pci-sh5.c index 873ed2b44055..bce73faabc88 100644 --- a/arch/sh/drivers/pci/pci-sh5.c +++ b/arch/sh/drivers/pci/pci-sh5.c | |||
@@ -216,8 +216,6 @@ static int __init sh5pci_init(void) | |||
216 | sh5_mem_resource.start = memStart; | 216 | sh5_mem_resource.start = memStart; |
217 | sh5_mem_resource.end = memStart + memSize; | 217 | sh5_mem_resource.end = memStart + memSize; |
218 | 218 | ||
219 | register_pci_controller(&sh5pci_controller); | 219 | return register_pci_controller(&sh5pci_controller); |
220 | |||
221 | return 0; | ||
222 | } | 220 | } |
223 | arch_initcall(sh5pci_init); | 221 | arch_initcall(sh5pci_init); |