diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-11-14 23:02:44 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-11-14 23:02:44 -0500 |
commit | de1bb03af7f4dde8e0e823629909d179fed4beff (patch) | |
tree | 4ea86f8e160b8ea5c9689883c7f7da1536f5294b /arch/powerpc/kernel | |
parent | 11ee7e99f35ecb15f59b21da6a82d96d2cd3fcc8 (diff) | |
parent | f459d63e1689b16a2f5a965557e19b25bad5dbdc (diff) |
Merge branch 'dt' into next
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/machine_kexec.c | 14 | ||||
-rw-r--r-- | arch/powerpc/kernel/machine_kexec_64.c | 8 | ||||
-rw-r--r-- | arch/powerpc/kernel/pci_32.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/prom.c | 6 | ||||
-rw-r--r-- | arch/powerpc/kernel/rtas.c | 1 |
5 files changed, 15 insertions, 16 deletions
diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c index fa9f6c72f557..e1ec57e87b3b 100644 --- a/arch/powerpc/kernel/machine_kexec.c +++ b/arch/powerpc/kernel/machine_kexec.c | |||
@@ -218,23 +218,23 @@ static void __init export_crashk_values(struct device_node *node) | |||
218 | * be sure what's in them, so remove them. */ | 218 | * be sure what's in them, so remove them. */ |
219 | prop = of_find_property(node, "linux,crashkernel-base", NULL); | 219 | prop = of_find_property(node, "linux,crashkernel-base", NULL); |
220 | if (prop) | 220 | if (prop) |
221 | prom_remove_property(node, prop); | 221 | of_remove_property(node, prop); |
222 | 222 | ||
223 | prop = of_find_property(node, "linux,crashkernel-size", NULL); | 223 | prop = of_find_property(node, "linux,crashkernel-size", NULL); |
224 | if (prop) | 224 | if (prop) |
225 | prom_remove_property(node, prop); | 225 | of_remove_property(node, prop); |
226 | 226 | ||
227 | if (crashk_res.start != 0) { | 227 | if (crashk_res.start != 0) { |
228 | prom_add_property(node, &crashk_base_prop); | 228 | of_add_property(node, &crashk_base_prop); |
229 | crashk_size = resource_size(&crashk_res); | 229 | crashk_size = resource_size(&crashk_res); |
230 | prom_add_property(node, &crashk_size_prop); | 230 | of_add_property(node, &crashk_size_prop); |
231 | } | 231 | } |
232 | 232 | ||
233 | /* | 233 | /* |
234 | * memory_limit is required by the kexec-tools to limit the | 234 | * memory_limit is required by the kexec-tools to limit the |
235 | * crash regions to the actual memory used. | 235 | * crash regions to the actual memory used. |
236 | */ | 236 | */ |
237 | prom_update_property(node, &memory_limit_prop); | 237 | of_update_property(node, &memory_limit_prop); |
238 | } | 238 | } |
239 | 239 | ||
240 | static int __init kexec_setup(void) | 240 | static int __init kexec_setup(void) |
@@ -249,11 +249,11 @@ static int __init kexec_setup(void) | |||
249 | /* remove any stale properties so ours can be found */ | 249 | /* remove any stale properties so ours can be found */ |
250 | prop = of_find_property(node, kernel_end_prop.name, NULL); | 250 | prop = of_find_property(node, kernel_end_prop.name, NULL); |
251 | if (prop) | 251 | if (prop) |
252 | prom_remove_property(node, prop); | 252 | of_remove_property(node, prop); |
253 | 253 | ||
254 | /* information needed by userspace when using default_machine_kexec */ | 254 | /* information needed by userspace when using default_machine_kexec */ |
255 | kernel_end = __pa(_end); | 255 | kernel_end = __pa(_end); |
256 | prom_add_property(node, &kernel_end_prop); | 256 | of_add_property(node, &kernel_end_prop); |
257 | 257 | ||
258 | export_crashk_values(node); | 258 | export_crashk_values(node); |
259 | 259 | ||
diff --git a/arch/powerpc/kernel/machine_kexec_64.c b/arch/powerpc/kernel/machine_kexec_64.c index d7f609086a99..7206701b1ff1 100644 --- a/arch/powerpc/kernel/machine_kexec_64.c +++ b/arch/powerpc/kernel/machine_kexec_64.c | |||
@@ -389,14 +389,14 @@ static int __init export_htab_values(void) | |||
389 | /* remove any stale propertys so ours can be found */ | 389 | /* remove any stale propertys so ours can be found */ |
390 | prop = of_find_property(node, htab_base_prop.name, NULL); | 390 | prop = of_find_property(node, htab_base_prop.name, NULL); |
391 | if (prop) | 391 | if (prop) |
392 | prom_remove_property(node, prop); | 392 | of_remove_property(node, prop); |
393 | prop = of_find_property(node, htab_size_prop.name, NULL); | 393 | prop = of_find_property(node, htab_size_prop.name, NULL); |
394 | if (prop) | 394 | if (prop) |
395 | prom_remove_property(node, prop); | 395 | of_remove_property(node, prop); |
396 | 396 | ||
397 | htab_base = __pa(htab_address); | 397 | htab_base = __pa(htab_address); |
398 | prom_add_property(node, &htab_base_prop); | 398 | of_add_property(node, &htab_base_prop); |
399 | prom_add_property(node, &htab_size_prop); | 399 | of_add_property(node, &htab_size_prop); |
400 | 400 | ||
401 | of_node_put(node); | 401 | of_node_put(node); |
402 | return 0; | 402 | return 0; |
diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c index 4b06ec5a502e..64f526a321f5 100644 --- a/arch/powerpc/kernel/pci_32.c +++ b/arch/powerpc/kernel/pci_32.c | |||
@@ -208,7 +208,7 @@ pci_create_OF_bus_map(void) | |||
208 | of_prop->name = "pci-OF-bus-map"; | 208 | of_prop->name = "pci-OF-bus-map"; |
209 | of_prop->length = 256; | 209 | of_prop->length = 256; |
210 | of_prop->value = &of_prop[1]; | 210 | of_prop->value = &of_prop[1]; |
211 | prom_add_property(dn, of_prop); | 211 | of_add_property(dn, of_prop); |
212 | of_node_put(dn); | 212 | of_node_put(dn); |
213 | } | 213 | } |
214 | } | 214 | } |
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index f5ca76a79c88..8b6f7a99cce2 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/debugfs.h> | 32 | #include <linux/debugfs.h> |
33 | #include <linux/irq.h> | 33 | #include <linux/irq.h> |
34 | #include <linux/memblock.h> | 34 | #include <linux/memblock.h> |
35 | #include <linux/of.h> | ||
35 | 36 | ||
36 | #include <asm/prom.h> | 37 | #include <asm/prom.h> |
37 | #include <asm/rtas.h> | 38 | #include <asm/rtas.h> |
@@ -49,7 +50,6 @@ | |||
49 | #include <asm/btext.h> | 50 | #include <asm/btext.h> |
50 | #include <asm/sections.h> | 51 | #include <asm/sections.h> |
51 | #include <asm/machdep.h> | 52 | #include <asm/machdep.h> |
52 | #include <asm/pSeries_reconfig.h> | ||
53 | #include <asm/pci-bridge.h> | 53 | #include <asm/pci-bridge.h> |
54 | #include <asm/kexec.h> | 54 | #include <asm/kexec.h> |
55 | #include <asm/opal.h> | 55 | #include <asm/opal.h> |
@@ -803,7 +803,7 @@ static int prom_reconfig_notifier(struct notifier_block *nb, | |||
803 | int err; | 803 | int err; |
804 | 804 | ||
805 | switch (action) { | 805 | switch (action) { |
806 | case PSERIES_RECONFIG_ADD: | 806 | case OF_RECONFIG_ATTACH_NODE: |
807 | err = of_finish_dynamic_node(node); | 807 | err = of_finish_dynamic_node(node); |
808 | if (err < 0) | 808 | if (err < 0) |
809 | printk(KERN_ERR "finish_node returned %d\n", err); | 809 | printk(KERN_ERR "finish_node returned %d\n", err); |
@@ -822,7 +822,7 @@ static struct notifier_block prom_reconfig_nb = { | |||
822 | 822 | ||
823 | static int __init prom_reconfig_setup(void) | 823 | static int __init prom_reconfig_setup(void) |
824 | { | 824 | { |
825 | return pSeries_reconfig_notifier_register(&prom_reconfig_nb); | 825 | return of_reconfig_notifier_register(&prom_reconfig_nb); |
826 | } | 826 | } |
827 | __initcall(prom_reconfig_setup); | 827 | __initcall(prom_reconfig_setup); |
828 | #endif | 828 | #endif |
diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c index fcec38241f79..1fd6e7b2f390 100644 --- a/arch/powerpc/kernel/rtas.c +++ b/arch/powerpc/kernel/rtas.c | |||
@@ -42,7 +42,6 @@ | |||
42 | #include <asm/time.h> | 42 | #include <asm/time.h> |
43 | #include <asm/mmu.h> | 43 | #include <asm/mmu.h> |
44 | #include <asm/topology.h> | 44 | #include <asm/topology.h> |
45 | #include <asm/pSeries_reconfig.h> | ||
46 | 45 | ||
47 | struct rtas_t rtas = { | 46 | struct rtas_t rtas = { |
48 | .lock = __ARCH_SPIN_LOCK_UNLOCKED | 47 | .lock = __ARCH_SPIN_LOCK_UNLOCKED |