aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-01-31 23:11:25 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-01-31 23:11:25 -0500
commitbcf39352eb9e9026f7a1028d4bce3707b65f104b (patch)
tree440794a7fe888c48bfb49bdd994873ae8a136866 /arch/sh/include
parent85b59f5bb24aeca1a987cbb206e228bf630c8327 (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/include')
-rw-r--r--arch/sh/include/asm/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/include/asm/pci.h b/arch/sh/include/asm/pci.h
index 5849d435c441..bbd10cf79825 100644
--- a/arch/sh/include/asm/pci.h
+++ b/arch/sh/include/asm/pci.h
@@ -31,7 +31,7 @@ struct pci_channel {
31 unsigned int need_domain_info; 31 unsigned int need_domain_info;
32}; 32};
33 33
34extern void register_pci_controller(struct pci_channel *hose); 34extern int register_pci_controller(struct pci_channel *hose);
35extern int pci_is_66mhz_capable(struct pci_channel *hose, 35extern int pci_is_66mhz_capable(struct pci_channel *hose,
36 int top_bus, int current_bus); 36 int top_bus, int current_bus);
37 37