diff options
author | Arnd Bergmann <arnd@arndb.de> | 2007-06-17 19:06:54 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-06-29 02:56:23 -0400 |
commit | 09b55f76c9e41ed88f445f64f00ed39b48ed137d (patch) | |
tree | fed87205ed14b98e208844ede72ecb9449d07fcf /arch/powerpc/platforms/85xx | |
parent | b9fd305db0b4723e70f1a5cf06e4a6949755331c (diff) |
[POWERPC] rename add_bridge to avoid namespace clashes
Many platforms currently define their own add_bridge function, some
of them globally. This breaks some multiplatform configurations.
Prefixing each of these functions with the platform name avoids
this problem.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/powerpc/platforms/85xx')
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx.h | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_ads.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_cds.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_mds.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/pci.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx.h b/arch/powerpc/platforms/85xx/mpc85xx.h index 83415db33378..7286ffac2c1d 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx.h +++ b/arch/powerpc/platforms/85xx/mpc85xx.h | |||
@@ -15,4 +15,4 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | extern void mpc85xx_restart(char *); | 17 | extern void mpc85xx_restart(char *); |
18 | extern int add_bridge(struct device_node *dev); | 18 | extern int mpc85xx_add_bridge(struct device_node *dev); |
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ads.c b/arch/powerpc/platforms/85xx/mpc85xx_ads.c index 5d27621f0927..a4995de6e737 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_ads.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_ads.c | |||
@@ -241,7 +241,7 @@ static void __init mpc85xx_ads_setup_arch(void) | |||
241 | 241 | ||
242 | #ifdef CONFIG_PCI | 242 | #ifdef CONFIG_PCI |
243 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) | 243 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) |
244 | add_bridge(np); | 244 | mpc85xx_add_bridge(np); |
245 | ppc_md.pci_exclude_device = mpc85xx_exclude_device; | 245 | ppc_md.pci_exclude_device = mpc85xx_exclude_device; |
246 | #endif | 246 | #endif |
247 | } | 247 | } |
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_cds.c b/arch/powerpc/platforms/85xx/mpc85xx_cds.c index 1490eb3ce0d3..40592540ec77 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_cds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_cds.c | |||
@@ -257,7 +257,7 @@ static void __init mpc85xx_cds_setup_arch(void) | |||
257 | 257 | ||
258 | #ifdef CONFIG_PCI | 258 | #ifdef CONFIG_PCI |
259 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) | 259 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) |
260 | add_bridge(np); | 260 | mpc85xx_add_bridge(np); |
261 | 261 | ||
262 | ppc_md.pcibios_fixup = mpc85xx_cds_pcibios_fixup; | 262 | ppc_md.pcibios_fixup = mpc85xx_cds_pcibios_fixup; |
263 | ppc_md.pci_exclude_device = mpc85xx_exclude_device; | 263 | ppc_md.pci_exclude_device = mpc85xx_exclude_device; |
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_mds.c b/arch/powerpc/platforms/85xx/mpc85xx_mds.c index e3dddbfe66ff..7310818bcc23 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_mds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_mds.c | |||
@@ -100,7 +100,7 @@ static void __init mpc85xx_mds_setup_arch(void) | |||
100 | 100 | ||
101 | #ifdef CONFIG_PCI | 101 | #ifdef CONFIG_PCI |
102 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) { | 102 | for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) { |
103 | add_bridge(np); | 103 | mpc85xx_add_bridge(np); |
104 | } | 104 | } |
105 | of_node_put(np); | 105 | of_node_put(np); |
106 | #endif | 106 | #endif |
diff --git a/arch/powerpc/platforms/85xx/pci.c b/arch/powerpc/platforms/85xx/pci.c index 48f17e23d771..3c38ae4b76c7 100644 --- a/arch/powerpc/platforms/85xx/pci.c +++ b/arch/powerpc/platforms/85xx/pci.c | |||
@@ -36,7 +36,7 @@ | |||
36 | int mpc85xx_pci2_busno = 0; | 36 | int mpc85xx_pci2_busno = 0; |
37 | 37 | ||
38 | #ifdef CONFIG_PCI | 38 | #ifdef CONFIG_PCI |
39 | int __init add_bridge(struct device_node *dev) | 39 | int __init mpc85xx_add_bridge(struct device_node *dev) |
40 | { | 40 | { |
41 | int len; | 41 | int len; |
42 | struct pci_controller *hose; | 42 | struct pci_controller *hose; |