reconfig.c (0f8f86c7bdd1c954fbe153af437a0d91a6c5721a) | reconfig.c (188917e183cf9ad0374b571006d0fc6d48a7f447) |
---|---|
1/* 2 * pSeries_reconfig.c - support for dynamic reconfiguration (including PCI 3 * Hotplug and Dynamic Logical Partitioning on RPA platforms). 4 * 5 * Copyright (C) 2005 Nathan Lynch 6 * Copyright (C) 2005 IBM Corporation 7 * 8 * --- 170 unchanged lines hidden (view full) --- 179 of_detach_node(np); 180 181 of_node_put(parent); 182 of_node_put(np); /* Must decrement the refcount */ 183 return 0; 184} 185 186/* | 1/* 2 * pSeries_reconfig.c - support for dynamic reconfiguration (including PCI 3 * Hotplug and Dynamic Logical Partitioning on RPA platforms). 4 * 5 * Copyright (C) 2005 Nathan Lynch 6 * Copyright (C) 2005 IBM Corporation 7 * 8 * --- 170 unchanged lines hidden (view full) --- 179 of_detach_node(np); 180 181 of_node_put(parent); 182 of_node_put(np); /* Must decrement the refcount */ 183 return 0; 184} 185 186/* |
187 * /proc/ppc64/ofdt - yucky binary interface for adding and removing | 187 * /proc/powerpc/ofdt - yucky binary interface for adding and removing |
188 * OF device nodes. Should be deprecated as soon as we get an 189 * in-kernel wrapper for the RTAS ibm,configure-connector call. 190 */ 191 192static void release_prop_list(const struct property *prop) 193{ 194 struct property *next; 195 for (; prop; prop = next) { --- 342 unchanged lines hidden (view full) --- 538 kfree(kbuf); 539 return rv ? rv : count; 540} 541 542static const struct file_operations ofdt_fops = { 543 .write = ofdt_write 544}; 545 | 188 * OF device nodes. Should be deprecated as soon as we get an 189 * in-kernel wrapper for the RTAS ibm,configure-connector call. 190 */ 191 192static void release_prop_list(const struct property *prop) 193{ 194 struct property *next; 195 for (; prop; prop = next) { --- 342 unchanged lines hidden (view full) --- 538 kfree(kbuf); 539 return rv ? rv : count; 540} 541 542static const struct file_operations ofdt_fops = { 543 .write = ofdt_write 544}; 545 |
546/* create /proc/ppc64/ofdt write-only by root */ | 546/* create /proc/powerpc/ofdt write-only by root */ |
547static int proc_ppc64_create_ofdt(void) 548{ 549 struct proc_dir_entry *ent; 550 551 if (!machine_is(pseries)) 552 return 0; 553 | 547static int proc_ppc64_create_ofdt(void) 548{ 549 struct proc_dir_entry *ent; 550 551 if (!machine_is(pseries)) 552 return 0; 553 |
554 ent = proc_create("ppc64/ofdt", S_IWUSR, NULL, &ofdt_fops); | 554 ent = proc_create("powerpc/ofdt", S_IWUSR, NULL, &ofdt_fops); |
555 if (ent) 556 ent->size = 0; 557 558 return 0; 559} 560__initcall(proc_ppc64_create_ofdt); | 555 if (ent) 556 ent->size = 0; 557 558 return 0; 559} 560__initcall(proc_ppc64_create_ofdt); |