diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2007-02-09 12:42:11 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-02-09 12:42:11 -0500 |
commit | 8f68abbfd9703e58920ff07d314a48654ed0bc3b (patch) | |
tree | e34773a7adf12151f4361ee55c32b9210cc40d1f | |
parent | 8500adc79b15fa85b403dbf04aba3497c1f80e50 (diff) | |
parent | 862a7284980d809a583e9a34c774fab84e0a46f8 (diff) |
Merge branch '85xx' into for_paulus
-rw-r--r-- | arch/powerpc/mm/pgtable_32.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_ads.c | 7 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_cds.c | 17 | ||||
-rw-r--r-- | arch/ppc/kernel/ppc_ksyms.c | 2 | ||||
-rw-r--r-- | arch/ppc/mm/pgtable.c | 2 |
5 files changed, 11 insertions, 19 deletions
diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index bd02272bcb0f..c284bdac9947 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c | |||
@@ -295,7 +295,7 @@ void __init mapin_ram(void) | |||
295 | } | 295 | } |
296 | 296 | ||
297 | /* is x a power of 4? */ | 297 | /* is x a power of 4? */ |
298 | #define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1)) | 298 | #define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1) |
299 | 299 | ||
300 | /* | 300 | /* |
301 | * Set up a mapping for a block of I/O. | 301 | * Set up a mapping for a block of I/O. |
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ads.c b/arch/powerpc/platforms/85xx/mpc85xx_ads.c index bda2e55e6c4c..c56fce57621c 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_ads.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_ads.c | |||
@@ -45,8 +45,7 @@ unsigned long isa_mem_base = 0; | |||
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | #ifdef CONFIG_PCI | 47 | #ifdef CONFIG_PCI |
48 | int | 48 | static int mpc85xx_exclude_device(u_char bus, u_char devfn) |
49 | mpc85xx_exclude_device(u_char bus, u_char devfn) | ||
50 | { | 49 | { |
51 | if (bus == 0 && PCI_SLOT(devfn) == 0) | 50 | if (bus == 0 && PCI_SLOT(devfn) == 0) |
52 | return PCIBIOS_DEVICE_NOT_FOUND; | 51 | return PCIBIOS_DEVICE_NOT_FOUND; |
@@ -69,7 +68,7 @@ static void cpm2_cascade(unsigned int irq, struct irq_desc *desc) | |||
69 | 68 | ||
70 | #endif /* CONFIG_CPM2 */ | 69 | #endif /* CONFIG_CPM2 */ |
71 | 70 | ||
72 | void __init mpc85xx_ads_pic_init(void) | 71 | static void __init mpc85xx_ads_pic_init(void) |
73 | { | 72 | { |
74 | struct mpic *mpic; | 73 | struct mpic *mpic; |
75 | struct resource r; | 74 | struct resource r; |
@@ -254,7 +253,7 @@ static void __init mpc85xx_ads_setup_arch(void) | |||
254 | #endif | 253 | #endif |
255 | } | 254 | } |
256 | 255 | ||
257 | void mpc85xx_ads_show_cpuinfo(struct seq_file *m) | 256 | static void mpc85xx_ads_show_cpuinfo(struct seq_file *m) |
258 | { | 257 | { |
259 | uint pvid, svid, phid1; | 258 | uint pvid, svid, phid1; |
260 | uint memsize = total_memory; | 259 | uint memsize = total_memory; |
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_cds.c b/arch/powerpc/platforms/85xx/mpc85xx_cds.c index 953cd5dd3f54..abc0aca6de40 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_cds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_cds.c | |||
@@ -56,7 +56,6 @@ unsigned long isa_mem_base = 0; | |||
56 | static int cds_pci_slot = 2; | 56 | static int cds_pci_slot = 2; |
57 | static volatile u8 *cadmus; | 57 | static volatile u8 *cadmus; |
58 | 58 | ||
59 | |||
60 | #ifdef CONFIG_PCI | 59 | #ifdef CONFIG_PCI |
61 | 60 | ||
62 | #define ARCADIA_HOST_BRIDGE_IDSEL 17 | 61 | #define ARCADIA_HOST_BRIDGE_IDSEL 17 |
@@ -64,8 +63,7 @@ static volatile u8 *cadmus; | |||
64 | 63 | ||
65 | extern int mpc85xx_pci2_busno; | 64 | extern int mpc85xx_pci2_busno; |
66 | 65 | ||
67 | int | 66 | static int mpc85xx_exclude_device(u_char bus, u_char devfn) |
68 | mpc85xx_exclude_device(u_char bus, u_char devfn) | ||
69 | { | 67 | { |
70 | if (bus == 0 && PCI_SLOT(devfn) == 0) | 68 | if (bus == 0 && PCI_SLOT(devfn) == 0) |
71 | return PCIBIOS_DEVICE_NOT_FOUND; | 69 | return PCIBIOS_DEVICE_NOT_FOUND; |
@@ -81,8 +79,7 @@ mpc85xx_exclude_device(u_char bus, u_char devfn) | |||
81 | return PCIBIOS_SUCCESSFUL; | 79 | return PCIBIOS_SUCCESSFUL; |
82 | } | 80 | } |
83 | 81 | ||
84 | void __init | 82 | static void __init mpc85xx_cds_pcibios_fixup(void) |
85 | mpc85xx_cds_pcibios_fixup(void) | ||
86 | { | 83 | { |
87 | struct pci_dev *dev; | 84 | struct pci_dev *dev; |
88 | u_char c; | 85 | u_char c; |
@@ -144,7 +141,7 @@ static void mpc85xx_8259_cascade(unsigned int irq, struct irq_desc *desc) | |||
144 | #endif /* PPC_I8259 */ | 141 | #endif /* PPC_I8259 */ |
145 | #endif /* CONFIG_PCI */ | 142 | #endif /* CONFIG_PCI */ |
146 | 143 | ||
147 | void __init mpc85xx_cds_pic_init(void) | 144 | static void __init mpc85xx_cds_pic_init(void) |
148 | { | 145 | { |
149 | struct mpic *mpic; | 146 | struct mpic *mpic; |
150 | struct resource r; | 147 | struct resource r; |
@@ -224,12 +221,10 @@ void __init mpc85xx_cds_pic_init(void) | |||
224 | #endif /* CONFIG_PPC_I8259 */ | 221 | #endif /* CONFIG_PPC_I8259 */ |
225 | } | 222 | } |
226 | 223 | ||
227 | |||
228 | /* | 224 | /* |
229 | * Setup the architecture | 225 | * Setup the architecture |
230 | */ | 226 | */ |
231 | static void __init | 227 | static void __init mpc85xx_cds_setup_arch(void) |
232 | mpc85xx_cds_setup_arch(void) | ||
233 | { | 228 | { |
234 | struct device_node *cpu; | 229 | struct device_node *cpu; |
235 | #ifdef CONFIG_PCI | 230 | #ifdef CONFIG_PCI |
@@ -276,9 +271,7 @@ mpc85xx_cds_setup_arch(void) | |||
276 | #endif | 271 | #endif |
277 | } | 272 | } |
278 | 273 | ||
279 | 274 | static void mpc85xx_cds_show_cpuinfo(struct seq_file *m) | |
280 | void | ||
281 | mpc85xx_cds_show_cpuinfo(struct seq_file *m) | ||
282 | { | 275 | { |
283 | uint pvid, svid, phid1; | 276 | uint pvid, svid, phid1; |
284 | uint memsize = total_memory; | 277 | uint memsize = total_memory; |
diff --git a/arch/ppc/kernel/ppc_ksyms.c b/arch/ppc/kernel/ppc_ksyms.c index 1f49503317cb..1318b6f4c3df 100644 --- a/arch/ppc/kernel/ppc_ksyms.c +++ b/arch/ppc/kernel/ppc_ksyms.c | |||
@@ -271,7 +271,7 @@ EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */ | |||
271 | extern long *intercept_table; | 271 | extern long *intercept_table; |
272 | EXPORT_SYMBOL(intercept_table); | 272 | EXPORT_SYMBOL(intercept_table); |
273 | #endif /* CONFIG_PPC_STD_MMU */ | 273 | #endif /* CONFIG_PPC_STD_MMU */ |
274 | #if defined(CONFIG_40x) || defined(CONFIG_BOOKE) | 274 | #ifdef CONFIG_PPC_DCR_NATIVE |
275 | EXPORT_SYMBOL(__mtdcr); | 275 | EXPORT_SYMBOL(__mtdcr); |
276 | EXPORT_SYMBOL(__mfdcr); | 276 | EXPORT_SYMBOL(__mfdcr); |
277 | #endif | 277 | #endif |
diff --git a/arch/ppc/mm/pgtable.c b/arch/ppc/mm/pgtable.c index 82b06a1ef95d..c023b7298809 100644 --- a/arch/ppc/mm/pgtable.c +++ b/arch/ppc/mm/pgtable.c | |||
@@ -314,7 +314,7 @@ void __init mapin_ram(void) | |||
314 | } | 314 | } |
315 | 315 | ||
316 | /* is x a power of 4? */ | 316 | /* is x a power of 4? */ |
317 | #define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1)) | 317 | #define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1) |
318 | 318 | ||
319 | /* | 319 | /* |
320 | * Set up a mapping for a block of I/O. | 320 | * Set up a mapping for a block of I/O. |