aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/pci-common.c7
-rw-r--r--arch/powerpc/kernel/setup_64.c12
2 files changed, 9 insertions, 10 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index faf5ef3e90d0..94b4a028232a 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -156,11 +156,14 @@ static DEVICE_ATTR(devspec, S_IRUGO, pci_show_devspec, NULL);
156#endif /* CONFIG_PPC_OF */ 156#endif /* CONFIG_PPC_OF */
157 157
158/* Add sysfs properties */ 158/* Add sysfs properties */
159void pcibios_add_platform_entries(struct pci_dev *pdev) 159int pcibios_add_platform_entries(struct pci_dev *pdev)
160{ 160{
161#ifdef CONFIG_PPC_OF 161#ifdef CONFIG_PPC_OF
162 device_create_file(&pdev->dev, &dev_attr_devspec); 162 return device_create_file(&pdev->dev, &dev_attr_devspec);
163#else
164 return 0;
163#endif /* CONFIG_PPC_OF */ 165#endif /* CONFIG_PPC_OF */
166
164} 167}
165 168
166char __init *pcibios_setup(char *str) 169char __init *pcibios_setup(char *str)
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index bc43bba05cf8..6018178708a5 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -350,11 +350,13 @@ void __init setup_system(void)
350{ 350{
351 DBG(" -> setup_system()\n"); 351 DBG(" -> setup_system()\n");
352 352
353 /* Apply CPUs-specific fixups to kernel text (nop out sections 353 /* Apply the CPUs-specific and firmware specific fixups to kernel
354 * not relevant to this CPU) 354 * text (nop out sections not relevant to this CPU or this firmware)
355 */ 355 */
356 do_feature_fixups(cur_cpu_spec->cpu_features, 356 do_feature_fixups(cur_cpu_spec->cpu_features,
357 &__start___ftr_fixup, &__stop___ftr_fixup); 357 &__start___ftr_fixup, &__stop___ftr_fixup);
358 do_feature_fixups(powerpc_firmware_features,
359 &__start___fw_ftr_fixup, &__stop___fw_ftr_fixup);
358 360
359 /* 361 /*
360 * Unflatten the device-tree passed by prom_init or kexec 362 * Unflatten the device-tree passed by prom_init or kexec
@@ -392,12 +394,6 @@ void __init setup_system(void)
392 if (ppc_md.init_early) 394 if (ppc_md.init_early)
393 ppc_md.init_early(); 395 ppc_md.init_early();
394 396
395 /* Apply firmware specific fixups to kernel text (nop out
396 * sections not relevant to this firmware)
397 */
398 do_feature_fixups(powerpc_firmware_features,
399 &__start___fw_ftr_fixup, &__stop___fw_ftr_fixup);
400
401 /* 397 /*
402 * We can discover serial ports now since the above did setup the 398 * We can discover serial ports now since the above did setup the
403 * hash table management for us, thus ioremap works. We do that early 399 * hash table management for us, thus ioremap works. We do that early