aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2011-07-12 10:25:51 -0400
committerRob Herring <rob.herring@calxeda.com>2011-07-12 10:28:04 -0400
commit0e47ff1ce65bbd0b12a9421a2756b26987ea5083 (patch)
treeaa15e9928332fbba8caf93a17d7aaecce4a10209 /arch/powerpc/sysdev
parentfe0d42203cb5616eeff68b14576a0f7e2dd56625 (diff)
powerpc: rename ppc_pci_*_flags to pci_*_flags
This renames pci flags functions and enums in preparation for creating generic version in asm-generic/pci-bridge.h. The following search and replace is done: s/ppc_pci_/pci_/ s/PPC_PCI_/PCI_/ Direct accesses to ppc_pci_flag variable are replaced with helper functions. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r--arch/powerpc/sysdev/fsl_pci.c4
-rw-r--r--arch/powerpc/sysdev/grackle.c2
-rw-r--r--arch/powerpc/sysdev/ppc4xx_pci.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c
index 68ca9290df94..31f99ec7382e 100644
--- a/arch/powerpc/sysdev/fsl_pci.c
+++ b/arch/powerpc/sysdev/fsl_pci.c
@@ -343,7 +343,7 @@ int __init fsl_add_bridge(struct device_node *dev, int is_primary)
343 printk(KERN_WARNING "Can't get bus-range for %s, assume" 343 printk(KERN_WARNING "Can't get bus-range for %s, assume"
344 " bus 0\n", dev->full_name); 344 " bus 0\n", dev->full_name);
345 345
346 ppc_pci_add_flags(PPC_PCI_REASSIGN_ALL_BUS); 346 pci_add_flags(PCI_REASSIGN_ALL_BUS);
347 hose = pcibios_alloc_controller(dev); 347 hose = pcibios_alloc_controller(dev);
348 if (!hose) 348 if (!hose)
349 return -ENOMEM; 349 return -ENOMEM;
@@ -679,7 +679,7 @@ int __init mpc83xx_add_bridge(struct device_node *dev)
679 " bus 0\n", dev->full_name); 679 " bus 0\n", dev->full_name);
680 } 680 }
681 681
682 ppc_pci_add_flags(PPC_PCI_REASSIGN_ALL_BUS); 682 pci_add_flags(PCI_REASSIGN_ALL_BUS);
683 hose = pcibios_alloc_controller(dev); 683 hose = pcibios_alloc_controller(dev);
684 if (!hose) 684 if (!hose)
685 return -ENOMEM; 685 return -ENOMEM;
diff --git a/arch/powerpc/sysdev/grackle.c b/arch/powerpc/sysdev/grackle.c
index cf27df6e508b..08abe91ae798 100644
--- a/arch/powerpc/sysdev/grackle.c
+++ b/arch/powerpc/sysdev/grackle.c
@@ -57,7 +57,7 @@ void __init setup_grackle(struct pci_controller *hose)
57{ 57{
58 setup_indirect_pci(hose, 0xfec00000, 0xfee00000, 0); 58 setup_indirect_pci(hose, 0xfec00000, 0xfee00000, 0);
59 if (of_machine_is_compatible("PowerMac1,1")) 59 if (of_machine_is_compatible("PowerMac1,1"))
60 ppc_pci_add_flags(PPC_PCI_REASSIGN_ALL_BUS); 60 pci_add_flags(PCI_REASSIGN_ALL_BUS);
61 if (of_machine_is_compatible("AAPL,PowerBook1998")) 61 if (of_machine_is_compatible("AAPL,PowerBook1998"))
62 grackle_set_loop_snoop(hose, 1); 62 grackle_set_loop_snoop(hose, 1);
63#if 0 /* Disabled for now, HW problems ??? */ 63#if 0 /* Disabled for now, HW problems ??? */
diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c
index 156aa7d36258..9c067fa3b878 100644
--- a/arch/powerpc/sysdev/ppc4xx_pci.c
+++ b/arch/powerpc/sysdev/ppc4xx_pci.c
@@ -1960,7 +1960,7 @@ static int __init ppc4xx_pci_find_bridges(void)
1960{ 1960{
1961 struct device_node *np; 1961 struct device_node *np;
1962 1962
1963 ppc_pci_flags |= PPC_PCI_ENABLE_PROC_DOMAINS | PPC_PCI_COMPAT_DOMAIN_0; 1963 pci_add_flags(PCI_ENABLE_PROC_DOMAINS | PCI_COMPAT_DOMAIN_0);
1964 1964
1965#ifdef CONFIG_PPC4xx_PCI_EXPRESS 1965#ifdef CONFIG_PPC4xx_PCI_EXPRESS
1966 for_each_compatible_node(np, NULL, "ibm,plb-pciex") 1966 for_each_compatible_node(np, NULL, "ibm,plb-pciex")