Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Convert to using %pOF instead of full_name

Now that we have a custom printf format specifier, convert users of
full_name to use %pOF instead. This is preparation to remove storing
of the full path string for each node.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Scott Wood <oss@buserror.net>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linuxppc-dev@lists.ozlabs.org
Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Rob Herring and committed by
Michael Ellerman
b7c670d6 bcf21e3a

+461 -487
+1 -1
arch/powerpc/kernel/btext.c
··· 253 253 254 254 for_each_node_by_type(np, "display") { 255 255 if (of_get_property(np, "linux,opened", NULL)) { 256 - printk("trying %s ...\n", np->full_name); 256 + printk("trying %pOF ...\n", np); 257 257 rc = btext_initialize(np); 258 258 printk("result: %d\n", rc); 259 259 }
+16 -18
arch/powerpc/kernel/cacheinfo.c
··· 167 167 168 168 list_for_each_entry(iter, &cache_list, list) 169 169 WARN_ONCE(iter->next_local == cache, 170 - "cache for %s(%s) refers to cache for %s(%s)\n", 171 - iter->ofnode->full_name, 170 + "cache for %pOF(%s) refers to cache for %pOF(%s)\n", 171 + iter->ofnode, 172 172 cache_type_string(iter), 173 - cache->ofnode->full_name, 173 + cache->ofnode, 174 174 cache_type_string(cache)); 175 175 } 176 176 ··· 179 179 if (!cache) 180 180 return; 181 181 182 - pr_debug("freeing L%d %s cache for %s\n", cache->level, 183 - cache_type_string(cache), cache->ofnode->full_name); 182 + pr_debug("freeing L%d %s cache for %pOF\n", cache->level, 183 + cache_type_string(cache), cache->ofnode); 184 184 185 185 release_cache_debugcheck(cache); 186 186 list_del(&cache->list); ··· 194 194 195 195 while (next) { 196 196 WARN_ONCE(cpumask_test_cpu(cpu, &next->shared_cpu_map), 197 - "CPU %i already accounted in %s(%s)\n", 198 - cpu, next->ofnode->full_name, 197 + "CPU %i already accounted in %pOF(%s)\n", 198 + cpu, next->ofnode, 199 199 cache_type_string(next)); 200 200 cpumask_set_cpu(cpu, &next->shared_cpu_map); 201 201 next = next->next_local; ··· 355 355 */ 356 356 static struct cache *cache_do_one_devnode_unified(struct device_node *node, int level) 357 357 { 358 - pr_debug("creating L%d ucache for %s\n", level, node->full_name); 358 + pr_debug("creating L%d ucache for %pOF\n", level, node); 359 359 360 360 return new_cache(cache_is_unified_d(node), level, node); 361 361 } ··· 365 365 { 366 366 struct cache *dcache, *icache; 367 367 368 - pr_debug("creating L%d dcache and icache for %s\n", level, 369 - node->full_name); 368 + pr_debug("creating L%d dcache and icache for %pOF\n", level, 369 + node); 370 370 371 371 dcache = new_cache(CACHE_TYPE_DATA, level, node); 372 372 icache = new_cache(CACHE_TYPE_INSTRUCTION, level, node); ··· 679 679 680 680 static void cacheinfo_create_index_opt_attrs(struct cache_index_dir *dir) 681 681 { 682 - const char *cache_name; 683 682 const char *cache_type; 684 683 struct cache *cache; 685 684 char *buf; ··· 689 690 return; 690 691 691 692 cache = dir->cache; 692 - cache_name = cache->ofnode->full_name; 693 693 cache_type = cache_type_string(cache); 694 694 695 695 /* We don't want to create an attribute that can't provide a ··· 705 707 rc = attr->show(&dir->kobj, attr, buf); 706 708 if (rc <= 0) { 707 709 pr_debug("not creating %s attribute for " 708 - "%s(%s) (rc = %zd)\n", 709 - attr->attr.name, cache_name, 710 + "%pOF(%s) (rc = %zd)\n", 711 + attr->attr.name, cache->ofnode, 710 712 cache_type, rc); 711 713 continue; 712 714 } 713 715 if (sysfs_create_file(&dir->kobj, &attr->attr)) 714 - pr_debug("could not create %s attribute for %s(%s)\n", 715 - attr->attr.name, cache_name, cache_type); 716 + pr_debug("could not create %s attribute for %pOF(%s)\n", 717 + attr->attr.name, cache->ofnode, cache_type); 716 718 } 717 719 718 720 kfree(buf); ··· 829 831 struct cache *next = cache->next_local; 830 832 831 833 WARN_ONCE(!cpumask_test_cpu(cpu, &cache->shared_cpu_map), 832 - "CPU %i not accounted in %s(%s)\n", 833 - cpu, cache->ofnode->full_name, 834 + "CPU %i not accounted in %pOF(%s)\n", 835 + cpu, cache->ofnode, 834 836 cache_type_string(cache)); 835 837 836 838 cpumask_clear_cpu(cpu, &cache->shared_cpu_map);
+2 -2
arch/powerpc/kernel/io-workarounds.c
··· 193 193 194 194 if (iowa_bus_count >= IOWA_MAX_BUS) { 195 195 pr_err("IOWA:Too many pci bridges, " 196 - "workarounds disabled for %s\n", np->full_name); 196 + "workarounds disabled for %pOF\n", np); 197 197 return; 198 198 } 199 199 ··· 208 208 209 209 iowa_bus_count++; 210 210 211 - pr_debug("IOWA:[%d]Add bus, %s.\n", iowa_bus_count-1, np->full_name); 211 + pr_debug("IOWA:[%d]Add bus, %pOF.\n", iowa_bus_count-1, np); 212 212 } 213 213
+16 -16
arch/powerpc/kernel/isa-bridge.c
··· 164 164 /* Set the global ISA io base to indicate we have an ISA bridge */ 165 165 isa_io_base = ISA_IO_BASE; 166 166 167 - pr_debug("ISA bridge (early) is %s\n", np->full_name); 167 + pr_debug("ISA bridge (early) is %pOF\n", np); 168 168 } 169 169 170 170 /** ··· 187 187 pna = of_n_addr_cells(np); 188 188 if (of_property_read_u32(np, "#address-cells", &na) || 189 189 of_property_read_u32(np, "#size-cells", &ns)) { 190 - pr_warn("ISA: Non-PCI bridge %s is missing address format\n", 191 - np->full_name); 190 + pr_warn("ISA: Non-PCI bridge %pOF is missing address format\n", 191 + np); 192 192 return; 193 193 } 194 194 195 195 /* Check it's a supported address format */ 196 196 if (na != 2 || ns != 1) { 197 - pr_warn("ISA: Non-PCI bridge %s has unsupported address format\n", 198 - np->full_name); 197 + pr_warn("ISA: Non-PCI bridge %pOF has unsupported address format\n", 198 + np); 199 199 return; 200 200 } 201 201 rs = na + ns + pna; ··· 203 203 /* Grab the ranges property */ 204 204 ranges = of_get_property(np, "ranges", &rlen); 205 205 if (ranges == NULL || rlen < rs) { 206 - pr_warn("ISA: Non-PCI bridge %s has absent or invalid ranges\n", 207 - np->full_name); 206 + pr_warn("ISA: Non-PCI bridge %pOF has absent or invalid ranges\n", 207 + np); 208 208 return; 209 209 } 210 210 ··· 220 220 221 221 /* Got something ? */ 222 222 if (!size || !pbasep) { 223 - pr_warn("ISA: Non-PCI bridge %s has no usable IO range\n", 224 - np->full_name); 223 + pr_warn("ISA: Non-PCI bridge %pOF has no usable IO range\n", 224 + np); 225 225 return; 226 226 } 227 227 ··· 233 233 /* Map pbase */ 234 234 pbase = of_translate_address(np, pbasep); 235 235 if (pbase == OF_BAD_ADDR) { 236 - pr_warn("ISA: Non-PCI bridge %s failed to translate IO base\n", 237 - np->full_name); 236 + pr_warn("ISA: Non-PCI bridge %pOF failed to translate IO base\n", 237 + np); 238 238 return; 239 239 } 240 240 241 241 /* We need page alignment */ 242 242 if ((cbase & ~PAGE_MASK) || (pbase & ~PAGE_MASK)) { 243 - pr_warn("ISA: Non-PCI bridge %s has non aligned IO range\n", 244 - np->full_name); 243 + pr_warn("ISA: Non-PCI bridge %pOF has non aligned IO range\n", 244 + np); 245 245 return; 246 246 } 247 247 ··· 255 255 __ioremap_at(pbase, (void *)ISA_IO_BASE, 256 256 size, pgprot_val(pgprot_noncached(__pgprot(0)))); 257 257 258 - pr_debug("ISA: Non-PCI bridge is %s\n", np->full_name); 258 + pr_debug("ISA: Non-PCI bridge is %pOF\n", np); 259 259 } 260 260 261 261 /** ··· 277 277 /* Set the global ISA io base to indicate we have an ISA bridge */ 278 278 isa_io_base = ISA_IO_BASE; 279 279 280 - pr_debug("ISA bridge (late) is %s on %s\n", 281 - devnode->full_name, pci_name(pdev)); 280 + pr_debug("ISA bridge (late) is %pOF on %s\n", 281 + devnode, pci_name(pdev)); 282 282 } 283 283 284 284 /**
+6 -6
arch/powerpc/kernel/legacy_serial.c
··· 147 147 legacy_serial_ports[index].serial_out = tsi_serial_out; 148 148 } 149 149 150 - printk(KERN_DEBUG "Found legacy serial port %d for %s\n", 151 - index, np->full_name); 150 + printk(KERN_DEBUG "Found legacy serial port %d for %pOF\n", 151 + index, np); 152 152 printk(KERN_DEBUG " %s=%llx, taddr=%llx, irq=%lx, clk=%d, speed=%d\n", 153 153 (iotype == UPIO_PORT) ? "port" : "mem", 154 154 (unsigned long long)base, (unsigned long long)taddr, irq, ··· 207 207 int index = -1; 208 208 u64 taddr; 209 209 210 - DBG(" -> add_legacy_isa_port(%s)\n", np->full_name); 210 + DBG(" -> add_legacy_isa_port(%pOF)\n", np); 211 211 212 212 /* Get the ISA port number */ 213 213 reg = of_get_property(np, "reg", NULL); ··· 256 256 unsigned int flags; 257 257 int iotype, index = -1, lindex = 0; 258 258 259 - DBG(" -> add_legacy_pci_port(%s)\n", np->full_name); 259 + DBG(" -> add_legacy_pci_port(%pOF)\n", np); 260 260 261 261 /* We only support ports that have a clock frequency properly 262 262 * encoded in the device-tree (that is have an fcode). Anything ··· 374 374 if (path != NULL) { 375 375 stdout = of_find_node_by_path(path); 376 376 if (stdout) 377 - DBG("stdout is %s\n", stdout->full_name); 377 + DBG("stdout is %pOF\n", stdout); 378 378 } else { 379 379 DBG(" no linux,stdout-path !\n"); 380 380 } ··· 603 603 DBG(" can't find stdout package %s !\n", name); 604 604 return -ENODEV; 605 605 } 606 - DBG("stdout is %s\n", prom_stdout->full_name); 606 + DBG("stdout is %pOF\n", prom_stdout); 607 607 608 608 name = of_get_property(prom_stdout, "name", NULL); 609 609 if (!name) {
+1 -1
arch/powerpc/kernel/of_platform.c
··· 45 45 if (ppc_md.pci_setup_phb == NULL) 46 46 return -ENODEV; 47 47 48 - pr_info("Setting up PCI bus %s\n", dev->dev.of_node->full_name); 48 + pr_info("Setting up PCI bus %pOF\n", dev->dev.of_node); 49 49 50 50 /* Alloc and setup PHB data structure */ 51 51 phb = pcibios_alloc_controller(dev->dev.of_node);
+7 -8
arch/powerpc/kernel/pci-common.c
··· 373 373 if (virq) 374 374 irq_set_irq_type(virq, IRQ_TYPE_LEVEL_LOW); 375 375 } else { 376 - pr_debug(" Got one, spec %d cells (0x%08x 0x%08x...) on %s\n", 377 - oirq.args_count, oirq.args[0], oirq.args[1], 378 - of_node_full_name(oirq.np)); 376 + pr_debug(" Got one, spec %d cells (0x%08x 0x%08x...) on %pOF\n", 377 + oirq.args_count, oirq.args[0], oirq.args[1], oirq.np); 379 378 380 379 virq = irq_create_of_mapping(&oirq); 381 380 } ··· 740 741 struct of_pci_range range; 741 742 struct of_pci_range_parser parser; 742 743 743 - printk(KERN_INFO "PCI host bridge %s %s ranges:\n", 744 - dev->full_name, primary ? "(primary)" : ""); 744 + printk(KERN_INFO "PCI host bridge %pOF %s ranges:\n", 745 + dev, primary ? "(primary)" : ""); 745 746 746 747 /* Check for ranges property */ 747 748 if (of_pci_range_parser_init(&parser, dev)) ··· 1555 1556 1556 1557 if (!res->flags) { 1557 1558 pr_debug("PCI: I/O resource not set for host" 1558 - " bridge %s (domain %d)\n", 1559 - hose->dn->full_name, hose->global_number); 1559 + " bridge %pOF (domain %d)\n", 1560 + hose->dn, hose->global_number); 1560 1561 } else { 1561 1562 offset = pcibios_io_space_offset(hose); 1562 1563 ··· 1667 1668 struct device_node *node = hose->dn; 1668 1669 int mode; 1669 1670 1670 - pr_debug("PCI: Scanning PHB %s\n", of_node_full_name(node)); 1671 + pr_debug("PCI: Scanning PHB %pOF\n", node); 1671 1672 1672 1673 /* Get some IO space for the new PHB */ 1673 1674 pcibios_setup_phb_io_space(hose);
+2 -2
arch/powerpc/kernel/pci_32.c
··· 79 79 return; 80 80 bus_range = of_get_property(node, "bus-range", &len); 81 81 if (bus_range == NULL || len < 2 * sizeof(int)) { 82 - printk(KERN_WARNING "Can't get bus-range for %s, " 83 - "assuming it starts at 0\n", node->full_name); 82 + printk(KERN_WARNING "Can't get bus-range for %pOF, " 83 + "assuming it starts at 0\n", node); 84 84 pci_to_OF_bus_map[pci_bus] = 0; 85 85 } else 86 86 pci_to_OF_bus_map[pci_bus] = bus_range[0];
+2 -2
arch/powerpc/kernel/pci_64.c
··· 111 111 if (hose->io_base_alloc == NULL) 112 112 return 0; 113 113 114 - pr_debug("IO unmapping for PHB %s\n", hose->dn->full_name); 114 + pr_debug("IO unmapping for PHB %pOF\n", hose->dn); 115 115 pr_debug(" alloc=0x%p\n", hose->io_base_alloc); 116 116 117 117 /* This is a PHB, we fully unmap the IO area */ ··· 151 151 hose->io_base_virt = (void __iomem *)(area->addr + 152 152 hose->io_base_phys - phys_page); 153 153 154 - pr_debug("IO mapping for PHB %s\n", hose->dn->full_name); 154 + pr_debug("IO mapping for PHB %pOF\n", hose->dn); 155 155 pr_debug(" phys=0x%016llx, virt=0x%p (alloc=0x%p)\n", 156 156 hose->io_base_phys, hose->io_base_virt, hose->io_base_alloc); 157 157 pr_debug(" size=0x%016llx (alloc=0x%016lx)\n",
+12 -12
arch/powerpc/kernel/pci_of_scan.c
··· 211 211 unsigned int flags; 212 212 u64 size; 213 213 214 - pr_debug("of_scan_pci_bridge(%s)\n", node->full_name); 214 + pr_debug("of_scan_pci_bridge(%pOF)\n", node); 215 215 216 216 /* parse bus-range property */ 217 217 busrange = of_get_property(node, "bus-range", &len); 218 218 if (busrange == NULL || len != 8) { 219 - printk(KERN_DEBUG "Can't get bus-range for PCI-PCI bridge %s\n", 220 - node->full_name); 219 + printk(KERN_DEBUG "Can't get bus-range for PCI-PCI bridge %pOF\n", 220 + node); 221 221 return; 222 222 } 223 223 ranges = of_get_property(node, "ranges", &len); 224 224 if (ranges == NULL) { 225 - printk(KERN_DEBUG "Can't get ranges for PCI-PCI bridge %s\n", 226 - node->full_name); 225 + printk(KERN_DEBUG "Can't get ranges for PCI-PCI bridge %pOF\n", 226 + node); 227 227 return; 228 228 } 229 229 ··· 233 233 bus = pci_add_new_bus(dev->bus, dev, 234 234 of_read_number(busrange, 1)); 235 235 if (!bus) { 236 - printk(KERN_ERR "Failed to create pci bus for %s\n", 237 - node->full_name); 236 + printk(KERN_ERR "Failed to create pci bus for %pOF\n", 237 + node); 238 238 return; 239 239 } 240 240 } ··· 262 262 res = bus->resource[0]; 263 263 if (res->flags) { 264 264 printk(KERN_ERR "PCI: ignoring extra I/O range" 265 - " for bridge %s\n", node->full_name); 265 + " for bridge %pOF\n", node); 266 266 continue; 267 267 } 268 268 } else { 269 269 if (i >= PCI_NUM_RESOURCES - PCI_BRIDGE_RESOURCES) { 270 270 printk(KERN_ERR "PCI: too many memory ranges" 271 - " for bridge %s\n", node->full_name); 271 + " for bridge %pOF\n", node); 272 272 continue; 273 273 } 274 274 res = bus->resource[i]; ··· 307 307 struct eeh_dev *edev = pdn_to_eeh_dev(PCI_DN(dn)); 308 308 #endif 309 309 310 - pr_debug(" * %s\n", dn->full_name); 310 + pr_debug(" * %pOF\n", dn); 311 311 if (!of_device_is_available(dn)) 312 312 return NULL; 313 313 ··· 350 350 struct device_node *child; 351 351 struct pci_dev *dev; 352 352 353 - pr_debug("of_scan_bus(%s) bus no %d...\n", 354 - node->full_name, bus->number); 353 + pr_debug("of_scan_bus(%pOF) bus no %d...\n", 354 + node, bus->number); 355 355 356 356 /* Scan direct children */ 357 357 for_each_child_of_node(node, child) {
+1 -1
arch/powerpc/kernel/setup-common.c
··· 481 481 __be32 cpu_be; 482 482 int j, len; 483 483 484 - DBG(" * %s...\n", dn->full_name); 484 + DBG(" * %pOF...\n", dn); 485 485 486 486 intserv = of_get_property(dn, "ibm,ppc-interrupt-server#s", 487 487 &len);
+4 -4
arch/powerpc/platforms/4xx/cpm.c
··· 278 278 dcr_len = dcr_resource_len(np, 0); 279 279 280 280 if (dcr_base == 0 || dcr_len == 0) { 281 - printk(KERN_ERR "cpm: could not parse dcr property for %s\n", 282 - np->full_name); 281 + printk(KERN_ERR "cpm: could not parse dcr property for %pOF\n", 282 + np); 283 283 ret = -EINVAL; 284 284 goto node_put; 285 285 } ··· 287 287 cpm.dcr_host = dcr_map(np, dcr_base, dcr_len); 288 288 289 289 if (!DCR_MAP_OK(cpm.dcr_host)) { 290 - printk(KERN_ERR "cpm: failed to map dcr property for %s\n", 291 - np->full_name); 290 + printk(KERN_ERR "cpm: failed to map dcr property for %pOF\n", 291 + np); 292 292 ret = -EINVAL; 293 293 goto node_put; 294 294 }
+1 -2
arch/powerpc/platforms/4xx/gpio.c
··· 198 198 goto err; 199 199 continue; 200 200 err: 201 - pr_err("%s: registration failed with status %d\n", 202 - np->full_name, ret); 201 + pr_err("%pOF: registration failed with status %d\n", np, ret); 203 202 kfree(ppc4xx_gc); 204 203 /* try others anyway */ 205 204 }
+1 -2
arch/powerpc/platforms/4xx/msi.c
··· 233 233 /* Get MSI ranges */ 234 234 err = of_address_to_resource(dev->dev.of_node, 0, &res); 235 235 if (err) { 236 - dev_err(&dev->dev, "%s resource error!\n", 237 - dev->dev.of_node->full_name); 236 + dev_err(&dev->dev, "%pOF resource error!\n", dev->dev.of_node); 238 237 goto error_out; 239 238 } 240 239
+52 -64
arch/powerpc/platforms/4xx/pci.c
··· 127 127 * within 32 bits space 128 128 */ 129 129 if (cpu_addr != 0 || pci_addr > 0xffffffff) { 130 - printk(KERN_WARNING "%s: Ignored unsupported dma range" 130 + printk(KERN_WARNING "%pOF: Ignored unsupported dma range" 131 131 " 0x%016llx...0x%016llx -> 0x%016llx\n", 132 - hose->dn->full_name, 132 + hose->dn, 133 133 pci_addr, pci_addr + size - 1, cpu_addr); 134 134 continue; 135 135 } ··· 152 152 153 153 /* We only support one global DMA offset */ 154 154 if (dma_offset_set && pci_dram_offset != res->start) { 155 - printk(KERN_ERR "%s: dma-ranges(s) mismatch\n", 156 - hose->dn->full_name); 155 + printk(KERN_ERR "%pOF: dma-ranges(s) mismatch\n", hose->dn); 157 156 return -ENXIO; 158 157 } 159 158 ··· 160 161 * DMA bounce buffers 161 162 */ 162 163 if (size < total_memory) { 163 - printk(KERN_ERR "%s: dma-ranges too small " 164 + printk(KERN_ERR "%pOF: dma-ranges too small " 164 165 "(size=%llx total_memory=%llx)\n", 165 - hose->dn->full_name, size, (u64)total_memory); 166 + hose->dn, size, (u64)total_memory); 166 167 return -ENXIO; 167 168 } 168 169 169 170 /* Check we are a power of 2 size and that base is a multiple of size*/ 170 171 if ((size & (size - 1)) != 0 || 171 172 (res->start & (size - 1)) != 0) { 172 - printk(KERN_ERR "%s: dma-ranges unaligned\n", 173 - hose->dn->full_name); 173 + printk(KERN_ERR "%pOF: dma-ranges unaligned\n", hose->dn); 174 174 return -ENXIO; 175 175 } 176 176 ··· 179 181 if (res->end > 0xffffffff && 180 182 !(of_device_is_compatible(hose->dn, "ibm,plb-pciex-460sx") 181 183 || of_device_is_compatible(hose->dn, "ibm,plb-pciex-476fpe"))) { 182 - printk(KERN_ERR "%s: dma-ranges outside of 32 bits space\n", 183 - hose->dn->full_name); 184 + printk(KERN_ERR "%pOF: dma-ranges outside of 32 bits space\n", 185 + hose->dn); 184 186 return -ENXIO; 185 187 } 186 188 out: ··· 231 233 */ 232 234 if ((plb_addr + size) > 0xffffffffull || !is_power_of_2(size) || 233 235 size < 0x1000 || (plb_addr & (size - 1)) != 0) { 234 - printk(KERN_WARNING "%s: Resource out of range\n", 235 - hose->dn->full_name); 236 + printk(KERN_WARNING "%pOF: Resource out of range\n", hose->dn); 236 237 return -1; 237 238 } 238 239 ma = (0xffffffffu << ilog2(size)) | 1; ··· 263 266 if (!(res->flags & IORESOURCE_MEM)) 264 267 continue; 265 268 if (j > 2) { 266 - printk(KERN_WARNING "%s: Too many ranges\n", 267 - hose->dn->full_name); 269 + printk(KERN_WARNING "%pOF: Too many ranges\n", hose->dn); 268 270 break; 269 271 } 270 272 ··· 288 292 if (j <= 2 && !found_isa_hole && hose->isa_mem_size) 289 293 if (ppc4xx_setup_one_pci_PMM(hose, reg, hose->isa_mem_phys, 0, 290 294 hose->isa_mem_size, 0, j) == 0) 291 - printk(KERN_INFO "%s: Legacy ISA memory support enabled\n", 292 - hose->dn->full_name); 295 + printk(KERN_INFO "%pOF: Legacy ISA memory support enabled\n", 296 + hose->dn); 293 297 } 294 298 295 299 static void __init ppc4xx_configure_pci_PTMs(struct pci_controller *hose, ··· 329 333 330 334 /* Check if device is enabled */ 331 335 if (!of_device_is_available(np)) { 332 - printk(KERN_INFO "%s: Port disabled via device-tree\n", 333 - np->full_name); 336 + printk(KERN_INFO "%pOF: Port disabled via device-tree\n", np); 334 337 return; 335 338 } 336 339 337 340 /* Fetch config space registers address */ 338 341 if (of_address_to_resource(np, 0, &rsrc_cfg)) { 339 - printk(KERN_ERR "%s: Can't get PCI config register base !", 340 - np->full_name); 342 + printk(KERN_ERR "%pOF: Can't get PCI config register base !", 343 + np); 341 344 return; 342 345 } 343 346 /* Fetch host bridge internal registers address */ 344 347 if (of_address_to_resource(np, 3, &rsrc_reg)) { 345 - printk(KERN_ERR "%s: Can't get PCI internal register base !", 346 - np->full_name); 348 + printk(KERN_ERR "%pOF: Can't get PCI internal register base !", 349 + np); 347 350 return; 348 351 } 349 352 ··· 356 361 /* Map registers */ 357 362 reg = ioremap(rsrc_reg.start, resource_size(&rsrc_reg)); 358 363 if (reg == NULL) { 359 - printk(KERN_ERR "%s: Can't map registers !", np->full_name); 364 + printk(KERN_ERR "%pOF: Can't map registers !", np); 360 365 goto fail; 361 366 } 362 367 ··· 418 423 419 424 if (!is_power_of_2(size) || size < 0x1000 || 420 425 (plb_addr & (size - 1)) != 0) { 421 - printk(KERN_WARNING "%s: Resource out of range\n", 422 - hose->dn->full_name); 426 + printk(KERN_WARNING "%pOF: Resource out of range\n", 427 + hose->dn); 423 428 return -1; 424 429 } 425 430 ··· 462 467 if (!(res->flags & IORESOURCE_MEM)) 463 468 continue; 464 469 if (j > 1) { 465 - printk(KERN_WARNING "%s: Too many ranges\n", 466 - hose->dn->full_name); 470 + printk(KERN_WARNING "%pOF: Too many ranges\n", hose->dn); 467 471 break; 468 472 } 469 473 ··· 487 493 if (j <= 1 && !found_isa_hole && hose->isa_mem_size) 488 494 if (ppc4xx_setup_one_pcix_POM(hose, reg, hose->isa_mem_phys, 0, 489 495 hose->isa_mem_size, 0, j) == 0) 490 - printk(KERN_INFO "%s: Legacy ISA memory support enabled\n", 491 - hose->dn->full_name); 496 + printk(KERN_INFO "%pOF: Legacy ISA memory support enabled\n", 497 + hose->dn); 492 498 } 493 499 494 500 static void __init ppc4xx_configure_pcix_PIMs(struct pci_controller *hose, ··· 533 539 534 540 /* Fetch config space registers address */ 535 541 if (of_address_to_resource(np, 0, &rsrc_cfg)) { 536 - printk(KERN_ERR "%s:Can't get PCI-X config register base !", 537 - np->full_name); 542 + printk(KERN_ERR "%pOF: Can't get PCI-X config register base !", 543 + np); 538 544 return; 539 545 } 540 546 /* Fetch host bridge internal registers address */ 541 547 if (of_address_to_resource(np, 3, &rsrc_reg)) { 542 - printk(KERN_ERR "%s: Can't get PCI-X internal register base !", 543 - np->full_name); 548 + printk(KERN_ERR "%pOF: Can't get PCI-X internal register base !", 549 + np); 544 550 return; 545 551 } 546 552 ··· 562 568 /* Map registers */ 563 569 reg = ioremap(rsrc_reg.start, resource_size(&rsrc_reg)); 564 570 if (reg == NULL) { 565 - printk(KERN_ERR "%s: Can't map registers !", np->full_name); 571 + printk(KERN_ERR "%pOF: Can't map registers !", np); 566 572 goto fail; 567 573 } 568 574 ··· 1240 1246 1241 1247 mbase = ioremap(port->cfg_space.start + 0x10000000, 0x1000); 1242 1248 if (mbase == NULL) { 1243 - printk(KERN_ERR "%s: Can't map internal config space !", 1244 - port->node->full_name); 1249 + printk(KERN_ERR "%pOF: Can't map internal config space !", 1250 + port->node); 1245 1251 goto done; 1246 1252 } 1247 1253 ··· 1383 1389 port->index); 1384 1390 return; 1385 1391 } 1386 - 1392 + 1387 1393 while (timeout_ms--) { 1388 1394 val = in_le32(mbase + PECFG_TLDLP); 1389 1395 ··· 1442 1448 ppc4xx_pciex_hwops = &ppc_476fpe_pcie_hwops; 1443 1449 #endif 1444 1450 if (ppc4xx_pciex_hwops == NULL) { 1445 - printk(KERN_WARNING "PCIE: unknown host type %s\n", 1446 - np->full_name); 1451 + printk(KERN_WARNING "PCIE: unknown host type %pOF\n", np); 1447 1452 return -ENODEV; 1448 1453 } 1449 1454 ··· 1723 1730 (index < 2 && size < 0x100000) || 1724 1731 (index == 2 && size < 0x100) || 1725 1732 (plb_addr & (size - 1)) != 0) { 1726 - printk(KERN_WARNING "%s: Resource out of range\n", 1727 - hose->dn->full_name); 1733 + printk(KERN_WARNING "%pOF: Resource out of range\n", hose->dn); 1728 1734 return -1; 1729 1735 } 1730 1736 ··· 1799 1807 if (!(res->flags & IORESOURCE_MEM)) 1800 1808 continue; 1801 1809 if (j > 1) { 1802 - printk(KERN_WARNING "%s: Too many ranges\n", 1803 - port->node->full_name); 1810 + printk(KERN_WARNING "%pOF: Too many ranges\n", 1811 + port->node); 1804 1812 break; 1805 1813 } 1806 1814 ··· 1826 1834 if (ppc4xx_setup_one_pciex_POM(port, hose, mbase, 1827 1835 hose->isa_mem_phys, 0, 1828 1836 hose->isa_mem_size, 0, j) == 0) 1829 - printk(KERN_INFO "%s: Legacy ISA memory support enabled\n", 1830 - hose->dn->full_name); 1837 + printk(KERN_INFO "%pOF: Legacy ISA memory support enabled\n", 1838 + hose->dn); 1831 1839 1832 1840 /* Configure IO, always 64K starting at 0. We hard wire it to 64K ! 1833 1841 * Note also that it -has- to be region index 2 on this HW ··· 1962 1970 (hose->first_busno + 1) * 0x100000, 1963 1971 busses * 0x100000); 1964 1972 if (cfg_data == NULL) { 1965 - printk(KERN_ERR "%s: Can't map external config space !", 1966 - port->node->full_name); 1973 + printk(KERN_ERR "%pOF: Can't map external config space !", 1974 + port->node); 1967 1975 goto fail; 1968 1976 } 1969 1977 hose->cfg_data = cfg_data; ··· 1974 1982 */ 1975 1983 mbase = ioremap(port->cfg_space.start + 0x10000000, 0x1000); 1976 1984 if (mbase == NULL) { 1977 - printk(KERN_ERR "%s: Can't map internal config space !", 1978 - port->node->full_name); 1985 + printk(KERN_ERR "%pOF: Can't map internal config space !", 1986 + port->node); 1979 1987 goto fail; 1980 1988 } 1981 1989 hose->cfg_addr = mbase; 1982 1990 1983 - pr_debug("PCIE %s, bus %d..%d\n", port->node->full_name, 1991 + pr_debug("PCIE %pOF, bus %d..%d\n", port->node, 1984 1992 hose->first_busno, hose->last_busno); 1985 1993 pr_debug(" config space mapped at: root @0x%p, other @0x%p\n", 1986 1994 hose->cfg_addr, hose->cfg_data); ··· 2092 2100 /* Get the port number from the device-tree */ 2093 2101 pval = of_get_property(np, "port", NULL); 2094 2102 if (pval == NULL) { 2095 - printk(KERN_ERR "PCIE: Can't find port number for %s\n", 2096 - np->full_name); 2103 + printk(KERN_ERR "PCIE: Can't find port number for %pOF\n", np); 2097 2104 return; 2098 2105 } 2099 2106 portno = *pval; 2100 2107 if (portno >= ppc4xx_pciex_port_count) { 2101 - printk(KERN_ERR "PCIE: port number out of range for %s\n", 2102 - np->full_name); 2108 + printk(KERN_ERR "PCIE: port number out of range for %pOF\n", 2109 + np); 2103 2110 return; 2104 2111 } 2105 2112 port = &ppc4xx_pciex_ports[portno]; ··· 2116 2125 if (ppc4xx_pciex_hwops->want_sdr) { 2117 2126 pval = of_get_property(np, "sdr-base", NULL); 2118 2127 if (pval == NULL) { 2119 - printk(KERN_ERR "PCIE: missing sdr-base for %s\n", 2120 - np->full_name); 2128 + printk(KERN_ERR "PCIE: missing sdr-base for %pOF\n", 2129 + np); 2121 2130 return; 2122 2131 } 2123 2132 port->sdr_base = *pval; ··· 2133 2142 } else if (!strcmp(val, "pci")) { 2134 2143 port->endpoint = 0; 2135 2144 } else { 2136 - printk(KERN_ERR "PCIE: missing or incorrect device_type for %s\n", 2137 - np->full_name); 2145 + printk(KERN_ERR "PCIE: missing or incorrect device_type for %pOF\n", 2146 + np); 2138 2147 return; 2139 2148 } 2140 2149 2141 2150 /* Fetch config space registers address */ 2142 2151 if (of_address_to_resource(np, 0, &port->cfg_space)) { 2143 - printk(KERN_ERR "%s: Can't get PCI-E config space !", 2144 - np->full_name); 2152 + printk(KERN_ERR "%pOF: Can't get PCI-E config space !", np); 2145 2153 return; 2146 2154 } 2147 2155 /* Fetch host bridge internal registers address */ 2148 2156 if (of_address_to_resource(np, 1, &port->utl_regs)) { 2149 - printk(KERN_ERR "%s: Can't get UTL register base !", 2150 - np->full_name); 2157 + printk(KERN_ERR "%pOF: Can't get UTL register base !", np); 2151 2158 return; 2152 2159 } 2153 2160 2154 2161 /* Map DCRs */ 2155 2162 dcrs = dcr_resource_start(np, 0); 2156 2163 if (dcrs == 0) { 2157 - printk(KERN_ERR "%s: Can't get DCR register base !", 2158 - np->full_name); 2164 + printk(KERN_ERR "%pOF: Can't get DCR register base !", np); 2159 2165 return; 2160 2166 } 2161 2167 port->dcrs = dcr_map(np, dcrs, dcr_resource_len(np, 0));
+2 -3
arch/powerpc/platforms/4xx/soc.c
··· 90 90 /* Get l2 cache size */ 91 91 prop = of_get_property(np, "cache-size", NULL); 92 92 if (prop == NULL) { 93 - printk(KERN_ERR "%s: Can't get cache-size!\n", np->full_name); 93 + printk(KERN_ERR "%pOF: Can't get cache-size!\n", np); 94 94 of_node_put(np); 95 95 return -ENODEV; 96 96 } ··· 99 99 /* Map DCRs */ 100 100 dcrreg = of_get_property(np, "dcr-reg", &len); 101 101 if (!dcrreg || (len != 4 * sizeof(u32))) { 102 - printk(KERN_ERR "%s: Can't get DCR register base !", 103 - np->full_name); 102 + printk(KERN_ERR "%pOF: Can't get DCR register base !", np); 104 103 of_node_put(np); 105 104 return -ENODEV; 106 105 }
+7 -7
arch/powerpc/platforms/4xx/uic.c
··· 243 243 raw_spin_lock_init(&uic->lock); 244 244 indexp = of_get_property(node, "cell-index", &len); 245 245 if (!indexp || (len != sizeof(u32))) { 246 - printk(KERN_ERR "uic: Device node %s has missing or invalid " 247 - "cell-index property\n", node->full_name); 246 + printk(KERN_ERR "uic: Device node %pOF has missing or invalid " 247 + "cell-index property\n", node); 248 248 return NULL; 249 249 } 250 250 uic->index = *indexp; 251 251 252 252 dcrreg = of_get_property(node, "dcr-reg", &len); 253 253 if (!dcrreg || (len != 2*sizeof(u32))) { 254 - printk(KERN_ERR "uic: Device node %s has missing or invalid " 255 - "dcr-reg property\n", node->full_name); 254 + printk(KERN_ERR "uic: Device node %pOF has missing or invalid " 255 + "dcr-reg property\n", node); 256 256 return NULL; 257 257 } 258 258 uic->dcrbase = *dcrreg; ··· 292 292 * top-level interrupt controller */ 293 293 primary_uic = uic_init_one(np); 294 294 if (!primary_uic) 295 - panic("Unable to initialize primary UIC %s\n", np->full_name); 295 + panic("Unable to initialize primary UIC %pOF\n", np); 296 296 297 297 irq_set_default_host(primary_uic->irqhost); 298 298 of_node_put(np); ··· 306 306 307 307 uic = uic_init_one(np); 308 308 if (! uic) 309 - panic("Unable to initialize a secondary UIC %s\n", 310 - np->full_name); 309 + panic("Unable to initialize a secondary UIC %pOF\n", 310 + np); 311 311 312 312 cascade_virq = irq_of_parse_and_map(np, 0); 313 313
+6 -6
arch/powerpc/platforms/512x/mpc512x_shared.c
··· 387 387 if (fp) 388 388 return *fp; 389 389 390 - pr_warning("no %s property in %s node, defaulting to %d\n", 391 - prop_name, np->full_name, DEFAULT_FIFO_SIZE); 390 + pr_warning("no %s property in %pOF node, defaulting to %d\n", 391 + prop_name, np, DEFAULT_FIFO_SIZE); 392 392 393 393 return DEFAULT_FIFO_SIZE; 394 394 } ··· 426 426 427 427 psc = of_iomap(np, 0); 428 428 if (!psc) { 429 - pr_err("%s: Can't map %s device\n", 430 - __func__, np->full_name); 429 + pr_err("%s: Can't map %pOF device\n", 430 + __func__, np); 431 431 continue; 432 432 } 433 433 434 434 /* FIFO space is 4KiB, check if requested size is available */ 435 435 if ((fifobase + tx_fifo_size + rx_fifo_size) > 0x1000) { 436 - pr_err("%s: no fifo space available for %s\n", 437 - __func__, np->full_name); 436 + pr_err("%s: no fifo space available for %pOF\n", 437 + __func__, np); 438 438 iounmap(psc); 439 439 /* 440 440 * chances are that another device requests less
+4 -4
arch/powerpc/platforms/52xx/efika.c
··· 99 99 bus_range = of_get_property(pcictrl, "bus-range", &len); 100 100 if (bus_range == NULL || len < 2 * sizeof(int)) { 101 101 printk(KERN_WARNING EFIKA_PLATFORM_NAME 102 - ": Can't get bus-range for %s\n", pcictrl->full_name); 102 + ": Can't get bus-range for %pOF\n", pcictrl); 103 103 goto out_put; 104 104 } 105 105 ··· 109 109 else 110 110 printk(KERN_INFO EFIKA_PLATFORM_NAME ": PCI buses %d..%d", 111 111 bus_range[0], bus_range[1]); 112 - printk(" controlled by %s\n", pcictrl->full_name); 112 + printk(" controlled by %pOF\n", pcictrl); 113 113 printk("\n"); 114 114 115 115 hose = pcibios_alloc_controller(pcictrl); 116 116 if (!hose) { 117 117 printk(KERN_WARNING EFIKA_PLATFORM_NAME 118 - ": Can't allocate PCI controller structure for %s\n", 119 - pcictrl->full_name); 118 + ": Can't allocate PCI controller structure for %pOF\n", 119 + pcictrl); 120 120 goto out_put; 121 121 } 122 122
+1 -1
arch/powerpc/platforms/52xx/media5200.c
··· 156 156 fpga_np = of_find_compatible_node(NULL, NULL, "fsl,media5200-fpga"); 157 157 if (!fpga_np) 158 158 goto out; 159 - pr_debug("%s: found fpga node: %s\n", __func__, fpga_np->full_name); 159 + pr_debug("%s: found fpga node: %pOF\n", __func__, fpga_np); 160 160 161 161 media5200_irq.regs = of_iomap(fpga_np, 0); 162 162 if (!media5200_irq.regs)
+2 -2
arch/powerpc/platforms/52xx/mpc52xx_gpt.c
··· 226 226 dev_dbg(gpt->dev, "%s: flags=%i\n", __func__, intspec[0]); 227 227 228 228 if ((intsize < 1) || (intspec[0] > 3)) { 229 - dev_err(gpt->dev, "bad irq specifier in %s\n", ct->full_name); 229 + dev_err(gpt->dev, "bad irq specifier in %pOF\n", ct); 230 230 return -EINVAL; 231 231 } 232 232 ··· 331 331 if (!of_find_property(node, "gpio-controller", NULL)) 332 332 return; 333 333 334 - gpt->gc.label = kstrdup(node->full_name, GFP_KERNEL); 334 + gpt->gc.label = kasprintf(GFP_KERNEL, "%pOF", node); 335 335 if (!gpt->gc.label) { 336 336 dev_err(gpt->dev, "out of memory\n"); 337 337 return;
+4 -4
arch/powerpc/platforms/52xx/mpc52xx_pci.c
··· 369 369 const int *bus_range; 370 370 struct resource rsrc; 371 371 372 - pr_debug("Adding MPC52xx PCI host bridge %s\n", node->full_name); 372 + pr_debug("Adding MPC52xx PCI host bridge %pOF\n", node); 373 373 374 374 pci_add_flags(PCI_REASSIGN_ALL_BUS); 375 375 376 376 if (of_address_to_resource(node, 0, &rsrc) != 0) { 377 - printk(KERN_ERR "Can't get %s resources\n", node->full_name); 377 + printk(KERN_ERR "Can't get %pOF resources\n", node); 378 378 return -EINVAL; 379 379 } 380 380 381 381 bus_range = of_get_property(node, "bus-range", &len); 382 382 if (bus_range == NULL || len < 2 * sizeof(int)) { 383 - printk(KERN_WARNING "Can't get %s bus-range, assume bus 0\n", 384 - node->full_name); 383 + printk(KERN_WARNING "Can't get %pOF bus-range, assume bus 0\n", 384 + node); 385 385 bus_range = NULL; 386 386 } 387 387
+2 -1
arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
··· 128 128 return -ENODEV; 129 129 130 130 gc->owner = THIS_MODULE; 131 - gc->label = np->full_name; 131 + gc->label = kasprintf(GFP_KERNEL, "%pOF", np); 132 132 gc->can_sleep = 1; 133 133 gc->ngpio = MCU_NUM_GPIO; 134 134 gc->base = -1; ··· 141 141 142 142 static int mcu_gpiochip_remove(struct mcu *mcu) 143 143 { 144 + kfree(mcu->gc.label); 144 145 gpiochip_remove(&mcu->gc); 145 146 return 0; 146 147 }
+1 -1
arch/powerpc/platforms/83xx/mpc832x_rdb.c
··· 113 113 unreg: 114 114 platform_device_del(pdev); 115 115 err: 116 - pr_err("%s: registration failed\n", np->full_name); 116 + pr_err("%pOF: registration failed\n", np); 117 117 next: 118 118 i++; 119 119 }
+4 -4
arch/powerpc/platforms/85xx/p1022_ds.c
··· 508 508 * allocate one static local variable for each 509 509 * call to this function. 510 510 */ 511 - pr_info("p1022ds: disabling %s node", 512 - np2->full_name); 511 + pr_info("p1022ds: disabling %pOF node", 512 + np2); 513 513 of_update_property(np2, &nor_status); 514 514 of_node_put(np2); 515 515 } ··· 524 524 .length = sizeof("disabled"), 525 525 }; 526 526 527 - pr_info("p1022ds: disabling %s node", 528 - np2->full_name); 527 + pr_info("p1022ds: disabling %pOF node", 528 + np2); 529 529 of_update_property(np2, &nand_status); 530 530 of_node_put(np2); 531 531 }
+2 -2
arch/powerpc/platforms/85xx/xes_mpc85xx.c
··· 100 100 err = of_address_to_resource(np, 0, &r[0]); 101 101 if (err) { 102 102 printk(KERN_WARNING "xes_mpc85xx: Could not get " 103 - "resource for device tree node '%s'", 104 - np->full_name); 103 + "resource for device tree node '%pOF'", 104 + np); 105 105 continue; 106 106 } 107 107
+3 -3
arch/powerpc/platforms/amigaone/setup.c
··· 40 40 const int *bus_range; 41 41 struct pci_controller *hose; 42 42 43 - printk(KERN_INFO "Adding PCI host bridge %s\n", dev->full_name); 43 + printk(KERN_INFO "Adding PCI host bridge %pOF\n", dev); 44 44 45 45 cfg_addr = of_get_address(dev, 0, NULL, NULL); 46 46 cfg_data = of_get_address(dev, 1, NULL, NULL); ··· 49 49 50 50 bus_range = of_get_property(dev, "bus-range", &len); 51 51 if ((bus_range == NULL) || (len < 2 * sizeof(int))) 52 - printk(KERN_WARNING "Can't get bus-range for %s, assume" 53 - " bus 0\n", dev->full_name); 52 + printk(KERN_WARNING "Can't get bus-range for %pOF, assume" 53 + " bus 0\n", dev); 54 54 55 55 hose = pcibios_alloc_controller(dev); 56 56 if (hose == NULL)
+18 -18
arch/powerpc/platforms/cell/axon_msi.c
··· 187 187 188 188 irq_domain = irq_find_host(dn); 189 189 if (!irq_domain) { 190 - dev_dbg(&dev->dev, "axon_msi: no irq_domain found for node %s\n", 191 - dn->full_name); 190 + dev_dbg(&dev->dev, "axon_msi: no irq_domain found for node %pOF\n", 191 + dn); 192 192 goto out_error; 193 193 } 194 194 ··· 326 326 struct axon_msic *msic = dev_get_drvdata(&device->dev); 327 327 u32 tmp; 328 328 329 - pr_devel("axon_msi: disabling %s\n", 330 - irq_domain_get_of_node(msic->irq_domain)->full_name); 329 + pr_devel("axon_msi: disabling %pOF\n", 330 + irq_domain_get_of_node(msic->irq_domain)); 331 331 tmp = dcr_read(msic->dcr_host, MSIC_CTRL_REG); 332 332 tmp &= ~MSIC_CTRL_ENABLE & ~MSIC_CTRL_IRQ_ENABLE; 333 333 msic_dcr_write(msic, MSIC_CTRL_REG, tmp); ··· 340 340 unsigned int virq; 341 341 int dcr_base, dcr_len; 342 342 343 - pr_devel("axon_msi: setting up dn %s\n", dn->full_name); 343 + pr_devel("axon_msi: setting up dn %pOF\n", dn); 344 344 345 345 msic = kzalloc(sizeof(struct axon_msic), GFP_KERNEL); 346 346 if (!msic) { 347 - printk(KERN_ERR "axon_msi: couldn't allocate msic for %s\n", 348 - dn->full_name); 347 + printk(KERN_ERR "axon_msi: couldn't allocate msic for %pOF\n", 348 + dn); 349 349 goto out; 350 350 } 351 351 ··· 354 354 355 355 if (dcr_base == 0 || dcr_len == 0) { 356 356 printk(KERN_ERR 357 - "axon_msi: couldn't parse dcr properties on %s\n", 358 - dn->full_name); 357 + "axon_msi: couldn't parse dcr properties on %pOF\n", 358 + dn); 359 359 goto out_free_msic; 360 360 } 361 361 362 362 msic->dcr_host = dcr_map(dn, dcr_base, dcr_len); 363 363 if (!DCR_MAP_OK(msic->dcr_host)) { 364 - printk(KERN_ERR "axon_msi: dcr_map failed for %s\n", 365 - dn->full_name); 364 + printk(KERN_ERR "axon_msi: dcr_map failed for %pOF\n", 365 + dn); 366 366 goto out_free_msic; 367 367 } 368 368 369 369 msic->fifo_virt = dma_alloc_coherent(&device->dev, MSIC_FIFO_SIZE_BYTES, 370 370 &msic->fifo_phys, GFP_KERNEL); 371 371 if (!msic->fifo_virt) { 372 - printk(KERN_ERR "axon_msi: couldn't allocate fifo for %s\n", 373 - dn->full_name); 372 + printk(KERN_ERR "axon_msi: couldn't allocate fifo for %pOF\n", 373 + dn); 374 374 goto out_free_msic; 375 375 } 376 376 377 377 virq = irq_of_parse_and_map(dn, 0); 378 378 if (!virq) { 379 - printk(KERN_ERR "axon_msi: irq parse and map failed for %s\n", 380 - dn->full_name); 379 + printk(KERN_ERR "axon_msi: irq parse and map failed for %pOF\n", 380 + dn); 381 381 goto out_free_fifo; 382 382 } 383 383 memset(msic->fifo_virt, 0xff, MSIC_FIFO_SIZE_BYTES); ··· 385 385 /* We rely on being able to stash a virq in a u16, so limit irqs to < 65536 */ 386 386 msic->irq_domain = irq_domain_add_nomap(dn, 65536, &msic_host_ops, msic); 387 387 if (!msic->irq_domain) { 388 - printk(KERN_ERR "axon_msi: couldn't allocate irq_domain for %s\n", 389 - dn->full_name); 388 + printk(KERN_ERR "axon_msi: couldn't allocate irq_domain for %pOF\n", 389 + dn); 390 390 goto out_free_fifo; 391 391 } 392 392 ··· 412 412 413 413 axon_msi_debug_setup(dn, msic); 414 414 415 - printk(KERN_DEBUG "axon_msi: setup MSIC on %s\n", dn->full_name); 415 + printk(KERN_DEBUG "axon_msi: setup MSIC on %pOF\n", dn); 416 416 417 417 return 0; 418 418
+2 -2
arch/powerpc/platforms/cell/interrupt.c
··· 303 303 iic->node = of_node_get(node); 304 304 out_be64(&iic->regs->prio, 0); 305 305 306 - printk(KERN_INFO "IIC for CPU %d target id 0x%x : %s\n", 307 - hw_cpu, iic->target_id, node->full_name); 306 + printk(KERN_INFO "IIC for CPU %d target id 0x%x : %pOF\n", 307 + hw_cpu, iic->target_id, node); 308 308 } 309 309 310 310 static int __init setup_iic(void)
+12 -12
arch/powerpc/platforms/cell/iommu.c
··· 278 278 if (of_node_to_nid(np) != nid) 279 279 continue; 280 280 if (of_address_to_resource(np, 0, &r)) { 281 - printk(KERN_ERR "iommu: can't get address for %s\n", 282 - np->full_name); 281 + printk(KERN_ERR "iommu: can't get address for %pOF\n", 282 + np); 283 283 continue; 284 284 } 285 285 *base = r.start; ··· 458 458 459 459 ioid = of_get_property(np, "ioid", NULL); 460 460 if (ioid == NULL) { 461 - printk(KERN_WARNING "iommu: missing ioid for %s using 0\n", 462 - np->full_name); 461 + printk(KERN_WARNING "iommu: missing ioid for %pOF using 0\n", 462 + np); 463 463 return 0; 464 464 } 465 465 ··· 559 559 */ 560 560 iommu = cell_iommu_for_node(dev_to_node(dev)); 561 561 if (iommu == NULL || list_empty(&iommu->windows)) { 562 - dev_err(dev, "iommu: missing iommu for %s (node %d)\n", 563 - of_node_full_name(dev->of_node), dev_to_node(dev)); 562 + dev_err(dev, "iommu: missing iommu for %pOF (node %d)\n", 563 + dev->of_node, dev_to_node(dev)); 564 564 return NULL; 565 565 } 566 566 window = list_entry(iommu->windows.next, struct iommu_window, list); ··· 720 720 /* Get node ID */ 721 721 nid = of_node_to_nid(np); 722 722 if (nid < 0) { 723 - printk(KERN_ERR "iommu: failed to get node for %s\n", 724 - np->full_name); 723 + printk(KERN_ERR "iommu: failed to get node for %pOF\n", 724 + np); 725 725 return NULL; 726 726 } 727 - pr_debug("iommu: setting up iommu for node %d (%s)\n", 728 - nid, np->full_name); 727 + pr_debug("iommu: setting up iommu for node %d (%pOF)\n", 728 + nid, np); 729 729 730 730 /* XXX todo: If we can have multiple windows on the same IOMMU, which 731 731 * isn't the case today, we probably want here to check whether the ··· 736 736 */ 737 737 738 738 if (cbe_nr_iommus >= NR_IOMMUS) { 739 - printk(KERN_ERR "iommu: too many IOMMUs detected ! (%s)\n", 740 - np->full_name); 739 + printk(KERN_ERR "iommu: too many IOMMUs detected ! (%pOF)\n", 740 + np); 741 741 return NULL; 742 742 } 743 743
+2 -2
arch/powerpc/platforms/cell/ras.c
··· 196 196 for_each_node_by_type(np, "cpu") { 197 197 const u32 *nid = of_get_property(np, "node-id", NULL); 198 198 if (!nid) { 199 - printk(KERN_ERR "%s: node %s is missing node-id?\n", 200 - __func__, np->full_name); 199 + printk(KERN_ERR "%s: node %pOF is missing node-id?\n", 200 + __func__, np); 201 201 continue; 202 202 } 203 203 cbe_ptcal_enable_on_node(*nid, order);
+2 -2
arch/powerpc/platforms/cell/spider-pci.c
··· 130 130 struct resource r; 131 131 unsigned long offset = (unsigned long)data; 132 132 133 - pr_debug("SPIDERPCI-IOWA:Bus initialize for spider(%s)\n", 134 - np->full_name); 133 + pr_debug("SPIDERPCI-IOWA:Bus initialize for spider(%pOF)\n", 134 + np); 135 135 136 136 priv = kzalloc(sizeof(struct spiderpci_iowa_private), GFP_KERNEL); 137 137 if (!priv) {
+2 -2
arch/powerpc/platforms/cell/spider-pic.c
··· 323 323 irq_set_handler_data(virq, pic); 324 324 irq_set_chained_handler(virq, spider_irq_cascade); 325 325 326 - printk(KERN_INFO "spider_pic: node %d, addr: 0x%lx %s\n", 327 - pic->node_id, addr, of_node->full_name); 326 + printk(KERN_INFO "spider_pic: node %d, addr: 0x%lx %pOF\n", 327 + pic->node_id, addr, of_node); 328 328 329 329 /* Enable the interrupt detection enable bit. Do this last! */ 330 330 out_be32(pic->regs + TIR_DEN, in_be32(pic->regs + TIR_DEN) | 0x1);
+13 -13
arch/powerpc/platforms/cell/spu_manage.c
··· 191 191 goto err; 192 192 } 193 193 ret = -EINVAL; 194 - pr_debug(" irq %d no 0x%x on %s\n", i, oirq.args[0], 195 - oirq.np->full_name); 194 + pr_debug(" irq %d no 0x%x on %pOF\n", i, oirq.args[0], 195 + oirq.np); 196 196 spu->irqs[i] = irq_create_of_mapping(&oirq); 197 197 if (!spu->irqs[i]) { 198 198 pr_debug("spu_new: failed to map it !\n"); ··· 243 243 ret = spu_map_resource(spu, 0, (void __iomem**)&spu->local_store, 244 244 &spu->local_store_phys); 245 245 if (ret) { 246 - pr_debug("spu_new: failed to map %s resource 0\n", 247 - np->full_name); 246 + pr_debug("spu_new: failed to map %pOF resource 0\n", 247 + np); 248 248 goto out; 249 249 } 250 250 ret = spu_map_resource(spu, 1, (void __iomem**)&spu->problem, 251 251 &spu->problem_phys); 252 252 if (ret) { 253 - pr_debug("spu_new: failed to map %s resource 1\n", 254 - np->full_name); 253 + pr_debug("spu_new: failed to map %pOF resource 1\n", 254 + np); 255 255 goto out_unmap; 256 256 } 257 257 ret = spu_map_resource(spu, 2, (void __iomem**)&spu->priv2, NULL); 258 258 if (ret) { 259 - pr_debug("spu_new: failed to map %s resource 2\n", 260 - np->full_name); 259 + pr_debug("spu_new: failed to map %pOF resource 2\n", 260 + np); 261 261 goto out_unmap; 262 262 } 263 263 if (!firmware_has_feature(FW_FEATURE_LPAR)) 264 264 ret = spu_map_resource(spu, 3, 265 265 (void __iomem**)&spu->priv1, NULL); 266 266 if (ret) { 267 - pr_debug("spu_new: failed to map %s resource 3\n", 268 - np->full_name); 267 + pr_debug("spu_new: failed to map %pOF resource 3\n", 268 + np); 269 269 goto out_unmap; 270 270 } 271 - pr_debug("spu_new: %s maps:\n", np->full_name); 271 + pr_debug("spu_new: %pOF maps:\n", np); 272 272 pr_debug(" local store : 0x%016lx -> 0x%p\n", 273 273 spu->local_store_phys, spu->local_store); 274 274 pr_debug(" problem state : 0x%016lx -> 0x%p\n", ··· 316 316 317 317 spu->node = of_node_to_nid(spe); 318 318 if (spu->node >= MAX_NUMNODES) { 319 - printk(KERN_WARNING "SPE %s on node %d ignored," 320 - " node number too big\n", spe->full_name, spu->node); 319 + printk(KERN_WARNING "SPE %pOF on node %d ignored," 320 + " node number too big\n", spe, spu->node); 321 321 printk(KERN_WARNING "Check if CONFIG_NUMA is enabled.\n"); 322 322 ret = -ENODEV; 323 323 goto out;
+9 -9
arch/powerpc/platforms/chrp/pci.c
··· 235 235 ++index; 236 236 /* The GG2 bridge on the LongTrail doesn't have an address */ 237 237 if (of_address_to_resource(dev, 0, &r) && !is_longtrail) { 238 - printk(KERN_WARNING "Can't use %s: no address\n", 239 - dev->full_name); 238 + printk(KERN_WARNING "Can't use %pOF: no address\n", 239 + dev); 240 240 continue; 241 241 } 242 242 bus_range = of_get_property(dev, "bus-range", &len); 243 243 if (bus_range == NULL || len < 2 * sizeof(int)) { 244 - printk(KERN_WARNING "Can't get bus-range for %s\n", 245 - dev->full_name); 244 + printk(KERN_WARNING "Can't get bus-range for %pOF\n", 245 + dev); 246 246 continue; 247 247 } 248 248 if (bus_range[1] == bus_range[0]) ··· 250 250 else 251 251 printk(KERN_INFO "PCI buses %d..%d", 252 252 bus_range[0], bus_range[1]); 253 - printk(" controlled by %s", dev->full_name); 253 + printk(" controlled by %pOF", dev); 254 254 if (!is_longtrail) 255 255 printk(" at %llx", (unsigned long long)r.start); 256 256 printk("\n"); 257 257 258 258 hose = pcibios_alloc_controller(dev); 259 259 if (!hose) { 260 - printk("Can't allocate PCI controller structure for %s\n", 261 - dev->full_name); 260 + printk("Can't allocate PCI controller structure for %pOF\n", 261 + dev); 262 262 continue; 263 263 } 264 264 hose->first_busno = hose->self_busno = bus_range[0]; ··· 297 297 } 298 298 } 299 299 } else { 300 - printk("No methods for %s (model %s), using RTAS\n", 301 - dev->full_name, model); 300 + printk("No methods for %pOF (model %s), using RTAS\n", 301 + dev, model); 302 302 hose->ops = &rtas_pci_ops; 303 303 } 304 304
+3 -3
arch/powerpc/platforms/embedded6xx/linkstation.c
··· 41 41 struct pci_controller *hose; 42 42 const int *bus_range; 43 43 44 - printk("Adding PCI host bridge %s\n", dev->full_name); 44 + printk("Adding PCI host bridge %pOF\n", dev); 45 45 46 46 bus_range = of_get_property(dev, "bus-range", &len); 47 47 if (bus_range == NULL || len < 2 * sizeof(int)) 48 - printk(KERN_WARNING "Can't get bus-range for %s, assume" 49 - " bus 0\n", dev->full_name); 48 + printk(KERN_WARNING "Can't get bus-range for %pOF, assume" 49 + " bus 0\n", dev); 50 50 51 51 hose = pcibios_alloc_controller(dev); 52 52 if (hose == NULL)
+1 -1
arch/powerpc/platforms/embedded6xx/mvme5100.c
··· 115 115 struct pci_controller *hose; 116 116 unsigned short devid; 117 117 118 - pr_info("Adding PCI host bridge %s\n", dev->full_name); 118 + pr_info("Adding PCI host bridge %pOF\n", dev); 119 119 120 120 bus_range = of_get_property(dev, "bus-range", &len); 121 121
+1 -1
arch/powerpc/platforms/embedded6xx/storcenter.c
··· 44 44 struct pci_controller *hose; 45 45 const int *bus_range; 46 46 47 - printk("Adding PCI host bridge %s\n", dev->full_name); 47 + printk("Adding PCI host bridge %pOF\n", dev); 48 48 49 49 hose = pcibios_alloc_controller(dev); 50 50 if (hose == NULL)
+5 -5
arch/powerpc/platforms/maple/pci.c
··· 73 73 /* Lookup the "bus-range" property for the hose */ 74 74 prop = of_find_property(bridge, "bus-range", &len); 75 75 if (prop == NULL || prop->value == NULL || len < 2 * sizeof(int)) { 76 - printk(KERN_WARNING "Can't get bus-range for %s\n", 77 - bridge->full_name); 76 + printk(KERN_WARNING "Can't get bus-range for %pOF\n", 77 + bridge); 78 78 return; 79 79 } 80 80 bus_range = prop->value; ··· 498 498 const int *bus_range; 499 499 int primary = 1; 500 500 501 - DBG("Adding PCI host bridge %s\n", dev->full_name); 501 + DBG("Adding PCI host bridge %pOF\n", dev); 502 502 503 503 bus_range = of_get_property(dev, "bus-range", &len); 504 504 if (bus_range == NULL || len < 2 * sizeof(int)) { 505 - printk(KERN_WARNING "Can't get bus-range for %s, assume bus 0\n", 506 - dev->full_name); 505 + printk(KERN_WARNING "Can't get bus-range for %pOF, assume bus 0\n", 506 + dev); 507 507 } 508 508 509 509 hose = pcibios_alloc_controller(dev);
+1 -1
arch/powerpc/platforms/pasemi/pci.c
··· 193 193 { 194 194 struct pci_controller *hose; 195 195 196 - pr_debug("Adding PCI host bridge %s\n", dev->full_name); 196 + pr_debug("Adding PCI host bridge %pOF\n", dev); 197 197 198 198 hose = pcibios_alloc_controller(dev); 199 199 if (!hose)
+7 -7
arch/powerpc/platforms/powermac/feature.c
··· 2658 2658 2659 2659 if (i >= MAX_MACIO_CHIPS) { 2660 2660 printk(KERN_ERR "pmac_feature: Please increase MAX_MACIO_CHIPS !\n"); 2661 - printk(KERN_ERR "pmac_feature: %s skipped\n", node->full_name); 2661 + printk(KERN_ERR "pmac_feature: %pOF skipped\n", node); 2662 2662 return; 2663 2663 } 2664 2664 addrp = of_get_pci_address(node, 0, &size, NULL); 2665 2665 if (addrp == NULL) { 2666 - printk(KERN_ERR "pmac_feature: %s: can't find base !\n", 2667 - node->full_name); 2666 + printk(KERN_ERR "pmac_feature: %pOF: can't find base !\n", 2667 + node); 2668 2668 return; 2669 2669 } 2670 2670 addr = of_translate_address(node, addrp); 2671 2671 if (addr == 0) { 2672 - printk(KERN_ERR "pmac_feature: %s, can't translate base !\n", 2673 - node->full_name); 2672 + printk(KERN_ERR "pmac_feature: %pOF, can't translate base !\n", 2673 + node); 2674 2674 return; 2675 2675 } 2676 2676 base = ioremap(addr, (unsigned long)size); 2677 2677 if (!base) { 2678 - printk(KERN_ERR "pmac_feature: %s, can't map mac-io chip !\n", 2679 - node->full_name); 2678 + printk(KERN_ERR "pmac_feature: %pOF, can't map mac-io chip !\n", 2679 + node); 2680 2680 return; 2681 2681 } 2682 2682 if (type == macio_keylargo || type == macio_keylargo2) {
+25 -25
arch/powerpc/platforms/powermac/low_i2c.c
··· 494 494 495 495 host = kzalloc(sizeof(struct pmac_i2c_host_kw), GFP_KERNEL); 496 496 if (host == NULL) { 497 - printk(KERN_ERR "low_i2c: Can't allocate host for %s\n", 498 - np->full_name); 497 + printk(KERN_ERR "low_i2c: Can't allocate host for %pOF\n", 498 + np); 499 499 return NULL; 500 500 } 501 501 ··· 505 505 */ 506 506 addrp = of_get_property(np, "AAPL,address", NULL); 507 507 if (addrp == NULL) { 508 - printk(KERN_ERR "low_i2c: Can't find address for %s\n", 509 - np->full_name); 508 + printk(KERN_ERR "low_i2c: Can't find address for %pOF\n", 509 + np); 510 510 kfree(host); 511 511 return NULL; 512 512 } ··· 538 538 host->irq = irq_of_parse_and_map(np, 0); 539 539 if (!host->irq) 540 540 printk(KERN_WARNING 541 - "low_i2c: Failed to map interrupt for %s\n", 542 - np->full_name); 541 + "low_i2c: Failed to map interrupt for %pOF\n", 542 + np); 543 543 544 544 host->base = ioremap((*addrp), 0x1000); 545 545 if (host->base == NULL) { 546 - printk(KERN_ERR "low_i2c: Can't map registers for %s\n", 547 - np->full_name); 546 + printk(KERN_ERR "low_i2c: Can't map registers for %pOF\n", 547 + np); 548 548 kfree(host); 549 549 return NULL; 550 550 } ··· 560 560 "keywest i2c", host)) 561 561 host->irq = 0; 562 562 563 - printk(KERN_INFO "KeyWest i2c @0x%08x irq %d %s\n", 564 - *addrp, host->irq, np->full_name); 563 + printk(KERN_INFO "KeyWest i2c @0x%08x irq %d %pOF\n", 564 + *addrp, host->irq, np); 565 565 566 566 return host; 567 567 } ··· 798 798 if (busnode == NULL) 799 799 return; 800 800 801 - printk(KERN_INFO "PMU i2c %s\n", busnode->full_name); 801 + printk(KERN_INFO "PMU i2c %pOF\n", busnode); 802 802 803 803 /* 804 804 * We add bus 1 and 2 only for now, bus 0 is "special" ··· 913 913 if (controller == NULL) 914 914 return; 915 915 916 - printk(KERN_INFO "SMU i2c %s\n", controller->full_name); 916 + printk(KERN_INFO "SMU i2c %pOF\n", controller); 917 917 918 918 /* Look for childs, note that they might not be of the right 919 919 * type as older device trees mix i2c busses and other things ··· 945 945 bus->flags = 0; 946 946 list_add(&bus->link, &pmac_i2c_busses); 947 947 948 - printk(KERN_INFO " channel %x bus %s\n", 949 - bus->channel, busnode->full_name); 948 + printk(KERN_INFO " channel %x bus %pOF\n", 949 + bus->channel, busnode); 950 950 } 951 951 } 952 952 ··· 1129 1129 */ 1130 1130 if (mode < pmac_i2c_mode_dumb || mode > pmac_i2c_mode_combined) { 1131 1131 printk(KERN_ERR "low_i2c: Invalid mode %d requested on" 1132 - " bus %s !\n", mode, bus->busnode->full_name); 1132 + " bus %pOF !\n", mode, bus->busnode); 1133 1133 return -EINVAL; 1134 1134 } 1135 1135 bus->mode = mode; ··· 1146 1146 WARN_ON(!bus->opened); 1147 1147 1148 1148 DBG("xfer() chan=%d, addrdir=0x%x, mode=%d, subsize=%d, subaddr=0x%x," 1149 - " %d bytes, bus %s\n", bus->channel, addrdir, bus->mode, subsize, 1150 - subaddr, len, bus->busnode->full_name); 1149 + " %d bytes, bus %pOF\n", bus->channel, addrdir, bus->mode, subsize, 1150 + subaddr, len, bus->busnode); 1151 1151 1152 1152 rc = bus->xfer(bus, addrdir, subsize, subaddr, data, len); 1153 1153 ··· 1241 1241 1242 1242 bus = pmac_i2c_find_bus(func->node); 1243 1243 if (bus == NULL) { 1244 - printk(KERN_ERR "low_i2c: Can't find bus for %s (pfunc)\n", 1245 - func->node->full_name); 1244 + printk(KERN_ERR "low_i2c: Can't find bus for %pOF (pfunc)\n", 1245 + func->node); 1246 1246 return NULL; 1247 1247 } 1248 1248 if (pmac_i2c_open(bus, 0)) { 1249 - printk(KERN_ERR "low_i2c: Can't open i2c bus for %s (pfunc)\n", 1250 - func->node->full_name); 1249 + printk(KERN_ERR "low_i2c: Can't open i2c bus for %pOF (pfunc)\n", 1250 + func->node); 1251 1251 return NULL; 1252 1252 } 1253 1253 ··· 1417 1417 1418 1418 static void __init pmac_i2c_dev_create(struct device_node *np, int quirks) 1419 1419 { 1420 - DBG("dev_create(%s)\n", np->full_name); 1420 + DBG("dev_create(%pOF)\n", np); 1421 1421 1422 1422 pmf_register_driver(np, &pmac_i2c_pfunc_handlers, 1423 1423 (void *)(long)quirks); ··· 1425 1425 1426 1426 static void __init pmac_i2c_dev_init(struct device_node *np, int quirks) 1427 1427 { 1428 - DBG("dev_create(%s)\n", np->full_name); 1428 + DBG("dev_create(%pOF)\n", np); 1429 1429 1430 1430 pmf_do_functions(np, NULL, 0, PMF_FLAGS_ON_INIT, NULL); 1431 1431 } 1432 1432 1433 1433 static void pmac_i2c_dev_suspend(struct device_node *np, int quirks) 1434 1434 { 1435 - DBG("dev_suspend(%s)\n", np->full_name); 1435 + DBG("dev_suspend(%pOF)\n", np); 1436 1436 pmf_do_functions(np, NULL, 0, PMF_FLAGS_ON_SLEEP, NULL); 1437 1437 } 1438 1438 1439 1439 static void pmac_i2c_dev_resume(struct device_node *np, int quirks) 1440 1440 { 1441 - DBG("dev_resume(%s)\n", np->full_name); 1441 + DBG("dev_resume(%pOF)\n", np); 1442 1442 pmf_do_functions(np, NULL, 0, PMF_FLAGS_ON_WAKE, NULL); 1443 1443 } 1444 1444
+3 -3
arch/powerpc/platforms/powermac/pci.c
··· 783 783 const int *bus_range; 784 784 int primary = 1, has_address = 0; 785 785 786 - DBG("Adding PCI host bridge %s\n", dev->full_name); 786 + DBG("Adding PCI host bridge %pOF\n", dev); 787 787 788 788 /* Fetch host bridge registers address */ 789 789 has_address = (of_address_to_resource(dev, 0, &rsrc) == 0); ··· 791 791 /* Get bus range if any */ 792 792 bus_range = of_get_property(dev, "bus-range", &len); 793 793 if (bus_range == NULL || len < 2 * sizeof(int)) { 794 - printk(KERN_WARNING "Can't get bus-range for %s, assume" 795 - " bus 0\n", dev->full_name); 794 + printk(KERN_WARNING "Can't get bus-range for %pOF, assume" 795 + " bus 0\n", dev); 796 796 } 797 797 798 798 hose = pcibios_alloc_controller(dev);
+12 -12
arch/powerpc/platforms/powermac/pfunc_base.c
··· 54 54 raw_spin_lock_irqsave(&feature_lock, flags); 55 55 tmp = readb(addr); 56 56 tmp = (tmp & ~mask) | (value & mask); 57 - DBG("Do write 0x%02x to GPIO %s (%p)\n", 58 - tmp, func->node->full_name, addr); 57 + DBG("Do write 0x%02x to GPIO %pOF (%p)\n", 58 + tmp, func->node, addr); 59 59 writeb(tmp, addr); 60 60 raw_spin_unlock_irqrestore(&feature_lock, flags); 61 61 ··· 107 107 if (gparent == NULL) 108 108 return; 109 109 110 - DBG("Installing GPIO functions for macio %s\n", 111 - macio->of_node->full_name); 110 + DBG("Installing GPIO functions for macio %pOF\n", 111 + macio->of_node); 112 112 113 113 /* 114 114 * Ok, got one, we dont need anything special to track them down, so ··· 129 129 pmf_register_driver(gp, &macio_gpio_handlers, (void *)offset); 130 130 } 131 131 132 - DBG("Calling initial GPIO functions for macio %s\n", 133 - macio->of_node->full_name); 132 + DBG("Calling initial GPIO functions for macio %pOF\n", 133 + macio->of_node); 134 134 135 135 /* And now we run all the init ones */ 136 136 for (gp = NULL; (gp = of_get_next_child(gparent, gp)) != NULL;) ··· 267 267 268 268 static void macio_mmio_init_one(struct macio_chip *macio) 269 269 { 270 - DBG("Installing MMIO functions for macio %s\n", 271 - macio->of_node->full_name); 270 + DBG("Installing MMIO functions for macio %pOF\n", 271 + macio->of_node); 272 272 273 273 pmf_register_driver(macio->of_node, &macio_mmio_handlers, macio); 274 274 } ··· 298 298 { 299 299 struct device_node *np; 300 300 301 - DBG("Installing functions for UniN %s\n", 302 - uninorth_node->full_name); 301 + DBG("Installing functions for UniN %pOF\n", 302 + uninorth_node); 303 303 304 304 /* 305 305 * Install handlers for the bridge itself ··· 317 317 break; 318 318 } 319 319 if (unin_hwclock) { 320 - DBG("Installing functions for UniN clock %s\n", 321 - unin_hwclock->full_name); 320 + DBG("Installing functions for UniN clock %pOF\n", 321 + unin_hwclock); 322 322 pmf_register_driver(unin_hwclock, &unin_mmio_handlers, NULL); 323 323 pmf_do_functions(unin_hwclock, NULL, 0, PMF_FLAGS_ON_INIT, 324 324 NULL);
+3 -3
arch/powerpc/platforms/powermac/pfunc_core.c
··· 708 708 if (handlers == NULL) 709 709 return -EINVAL; 710 710 711 - DBG("pmf: registering driver for node %s\n", np->full_name); 711 + DBG("pmf: registering driver for node %pOF\n", np); 712 712 713 713 spin_lock_irqsave(&pmf_lock, flags); 714 714 dev = pmf_find_device(np); ··· 781 781 struct pmf_device *dev; 782 782 unsigned long flags; 783 783 784 - DBG("pmf: unregistering driver for node %s\n", np->full_name); 784 + DBG("pmf: unregistering driver for node %pOF\n", np); 785 785 786 786 spin_lock_irqsave(&pmf_lock, flags); 787 787 dev = pmf_find_device(np); ··· 940 940 void *instdata = NULL; 941 941 int rc = 0; 942 942 943 - DBG(" ** pmf_call_one(%s/%s) **\n", dev->node->full_name, func->name); 943 + DBG(" ** pmf_call_one(%pOF/%s) **\n", dev->node, func->name); 944 944 945 945 if (dev->handlers->begin) 946 946 instdata = dev->handlers->begin(func, args);
+4 -4
arch/powerpc/platforms/powermac/pic.c
··· 364 364 (addr + 0x10); 365 365 of_node_put(master); 366 366 367 - printk(KERN_INFO "irq: Found primary Apple PIC %s for %d irqs\n", 368 - master->full_name, max_real_irqs); 367 + printk(KERN_INFO "irq: Found primary Apple PIC %pOF for %d irqs\n", 368 + master, max_real_irqs); 369 369 370 370 /* Map interrupts of cascaded controller */ 371 371 if (slave && !of_address_to_resource(slave, 0, &r)) { ··· 378 378 (addr + 0x10); 379 379 pmac_irq_cascade = irq_of_parse_and_map(slave, 0); 380 380 381 - printk(KERN_INFO "irq: Found slave Apple PIC %s for %d irqs" 382 - " cascade: %d\n", slave->full_name, 381 + printk(KERN_INFO "irq: Found slave Apple PIC %pOF for %d irqs" 382 + " cascade: %d\n", slave, 383 383 max_irqs - max_real_irqs, pmac_irq_cascade); 384 384 } 385 385 of_node_put(slave);
+1 -1
arch/powerpc/platforms/powermac/setup.c
··· 556 556 pr_debug(" can't find stdout package %s !\n", name); 557 557 return -ENODEV; 558 558 } 559 - pr_debug("stdout is %s\n", prom_stdout->full_name); 559 + pr_debug("stdout is %pOF\n", prom_stdout); 560 560 561 561 name = of_get_property(prom_stdout, "name", NULL); 562 562 if (!name) {
+2 -2
arch/powerpc/platforms/powernv/opal-async.c
··· 171 171 172 172 async = of_get_property(opal_node, "opal-msg-async-num", NULL); 173 173 if (!async) { 174 - pr_err("%s: %s has no opal-msg-async-num\n", 175 - __func__, opal_node->full_name); 174 + pr_err("%s: %pOF has no opal-msg-async-num\n", 175 + __func__, opal_node); 176 176 err = -ENOENT; 177 177 goto out_opal_node; 178 178 }
+4 -4
arch/powerpc/platforms/powernv/opal-xscom.c
··· 36 36 const __be32 *gcid; 37 37 38 38 if (!of_get_property(dev, "scom-controller", NULL)) { 39 - pr_err("%s: device %s is not a SCOM controller\n", 40 - __func__, dev->full_name); 39 + pr_err("%s: device %pOF is not a SCOM controller\n", 40 + __func__, dev); 41 41 return SCOM_MAP_INVALID; 42 42 } 43 43 gcid = of_get_property(dev, "ibm,chip-id", NULL); 44 44 if (!gcid) { 45 - pr_err("%s: device %s has no ibm,chip-id\n", 46 - __func__, dev->full_name); 45 + pr_err("%s: device %pOF has no ibm,chip-id\n", 46 + __func__, dev); 47 47 return SCOM_MAP_INVALID; 48 48 } 49 49 m = kmalloc(sizeof(struct opal_scom_map), GFP_KERNEL);
+7 -8
arch/powerpc/platforms/powernv/pci-ioda.c
··· 444 444 445 445 r = of_get_property(dn, "ibm,opal-m64-window", NULL); 446 446 if (!r) { 447 - pr_info(" No <ibm,opal-m64-window> on %s\n", 448 - dn->full_name); 447 + pr_info(" No <ibm,opal-m64-window> on %pOF\n", 448 + dn); 449 449 return; 450 450 } 451 451 ··· 3796 3796 if (!of_device_is_available(np)) 3797 3797 return; 3798 3798 3799 - pr_info("Initializing %s PHB (%s)\n", 3800 - pnv_phb_names[ioda_type], of_node_full_name(np)); 3799 + pr_info("Initializing %s PHB (%pOF)\n", pnv_phb_names[ioda_type], np); 3801 3800 3802 3801 prop64 = of_get_property(np, "ibm,opal-phbid", NULL); 3803 3802 if (!prop64) { ··· 3811 3812 /* Allocate PCI controller */ 3812 3813 phb->hose = hose = pcibios_alloc_controller(np); 3813 3814 if (!phb->hose) { 3814 - pr_err(" Can't allocate PCI controller for %s\n", 3815 - np->full_name); 3815 + pr_err(" Can't allocate PCI controller for %pOF\n", 3816 + np); 3816 3817 memblock_free(__pa(phb), sizeof(struct pnv_phb)); 3817 3818 return; 3818 3819 } ··· 3823 3824 hose->first_busno = be32_to_cpu(prop32[0]); 3824 3825 hose->last_busno = be32_to_cpu(prop32[1]); 3825 3826 } else { 3826 - pr_warn(" Broken <bus-range> on %s\n", np->full_name); 3827 + pr_warn(" Broken <bus-range> on %pOF\n", np); 3827 3828 hose->first_busno = 0; 3828 3829 hose->last_busno = 0xff; 3829 3830 } ··· 4044 4045 const __be64 *prop64; 4045 4046 u64 hub_id; 4046 4047 4047 - pr_info("Probing IODA IO-Hub %s\n", np->full_name); 4048 + pr_info("Probing IODA IO-Hub %pOF\n", np); 4048 4049 4049 4050 prop64 = of_get_property(np, "ibm,opal-hubid", NULL); 4050 4051 if (!prop64) {
+3 -3
arch/powerpc/platforms/powernv/rng.c
··· 125 125 126 126 chip_id = of_get_ibm_chip_id(dn); 127 127 if (chip_id == -1) 128 - pr_warn("No ibm,chip-id found for %s.\n", dn->full_name); 128 + pr_warn("No ibm,chip-id found for %pOF.\n", dn); 129 129 130 130 for_each_possible_cpu(cpu) { 131 131 if (per_cpu(powernv_rng, cpu) == NULL || ··· 178 178 for_each_compatible_node(dn, NULL, "ibm,power-rng") { 179 179 rc = rng_create(dn); 180 180 if (rc) { 181 - pr_err("Failed creating rng for %s (%d).\n", 182 - dn->full_name, rc); 181 + pr_err("Failed creating rng for %pOF (%d).\n", 182 + dn, rc); 183 183 continue; 184 184 } 185 185
+1 -2
arch/powerpc/platforms/pseries/dlpar.c
··· 264 264 265 265 rc = of_attach_node(dn); 266 266 if (rc) { 267 - printk(KERN_ERR "Failed to add device node %s\n", 268 - dn->full_name); 267 + printk(KERN_ERR "Failed to add device node %pOF\n", dn); 269 268 return rc; 270 269 } 271 270
+3 -3
arch/powerpc/platforms/pseries/event_sources.c
··· 36 36 virqs[count] = irq_create_of_mapping(&oirq); 37 37 if (!virqs[count]) { 38 38 pr_err("event-sources: Unable to allocate " 39 - "interrupt number for %s\n", 40 - np->full_name); 39 + "interrupt number for %pOF\n", 40 + np); 41 41 WARN_ON(1); 42 42 } else { 43 43 count++; ··· 48 48 for (i = 0; i < count; i++) { 49 49 if (request_irq(virqs[i], handler, 0, name, NULL)) { 50 50 pr_err("event-sources: Unable to request interrupt " 51 - "%d for %s\n", virqs[i], np->full_name); 51 + "%d for %pOF\n", virqs[i], np); 52 52 WARN_ON(1); 53 53 return; 54 54 }
+2 -2
arch/powerpc/platforms/pseries/hotplug-cpu.c
··· 264 264 /* If we get here, it most likely means that NR_CPUS is 265 265 * less than the partition's max processors setting. 266 266 */ 267 - printk(KERN_ERR "Cannot add cpu %s; this system configuration" 268 - " supports %d logical cpus.\n", np->full_name, 267 + printk(KERN_ERR "Cannot add cpu %pOF; this system configuration" 268 + " supports %d logical cpus.\n", np, 269 269 num_possible_cpus()); 270 270 goto out_unlock; 271 271 }
+2 -3
arch/powerpc/platforms/pseries/ibmebus.c
··· 150 150 static int ibmebus_match_path(struct device *dev, void *data) 151 151 { 152 152 struct device_node *dn = to_platform_device(dev)->dev.of_node; 153 - return (dn->full_name && 154 - (strcasecmp((char *)data, dn->full_name) == 0)); 153 + return (of_find_node_by_path(data) == dn); 155 154 } 156 155 157 156 static int ibmebus_match_node(struct device *dev, void *data) ··· 394 395 struct platform_device *ofdev; 395 396 396 397 ofdev = to_platform_device(dev); 397 - return sprintf(buf, "%s\n", ofdev->dev.of_node->full_name); 398 + return sprintf(buf, "%pOF\n", ofdev->dev.of_node); 398 399 } 399 400 static DEVICE_ATTR_RO(devspec); 400 401
+29 -29
arch/powerpc/platforms/pseries/iommu.c
··· 511 511 basep = of_get_property(node, "linux,tce-base", NULL); 512 512 sizep = of_get_property(node, "linux,tce-size", NULL); 513 513 if (basep == NULL || sizep == NULL) { 514 - printk(KERN_ERR "PCI_DMA: iommu_table_setparms: %s has " 515 - "missing tce entries !\n", dn->full_name); 514 + printk(KERN_ERR "PCI_DMA: iommu_table_setparms: %pOF has " 515 + "missing tce entries !\n", dn); 516 516 return; 517 517 } 518 518 ··· 587 587 588 588 dn = pci_bus_to_OF_node(bus); 589 589 590 - pr_debug("pci_dma_bus_setup_pSeries: setting up bus %s\n", dn->full_name); 590 + pr_debug("pci_dma_bus_setup_pSeries: setting up bus %pOF\n", dn); 591 591 592 592 if (bus->self) { 593 593 /* This is not a root bus, any setup will be done for the ··· 701 701 702 702 dn = pci_bus_to_OF_node(bus); 703 703 704 - pr_debug("pci_dma_bus_setup_pSeriesLP: setting up bus %s\n", 705 - dn->full_name); 704 + pr_debug("pci_dma_bus_setup_pSeriesLP: setting up bus %pOF\n", 705 + dn); 706 706 707 707 /* Find nearest ibm,dma-window, walking up the device tree */ 708 708 for (pdn = dn; pdn != NULL; pdn = pdn->parent) { ··· 718 718 719 719 ppci = PCI_DN(pdn); 720 720 721 - pr_debug(" parent is %s, iommu_table: 0x%p\n", 722 - pdn->full_name, ppci->table_group); 721 + pr_debug(" parent is %pOF, iommu_table: 0x%p\n", 722 + pdn, ppci->table_group); 723 723 724 724 if (!ppci->table_group) { 725 725 ppci->table_group = iommu_pseries_alloc_group(ppci->phb->node); ··· 817 817 ret = tce_clearrange_multi_pSeriesLP(0, 818 818 1ULL << (be32_to_cpu(dwp->window_shift) - PAGE_SHIFT), dwp); 819 819 if (ret) 820 - pr_warning("%s failed to clear tces in window.\n", 821 - np->full_name); 820 + pr_warning("%pOF failed to clear tces in window.\n", 821 + np); 822 822 else 823 - pr_debug("%s successfully cleared tces in window.\n", 824 - np->full_name); 823 + pr_debug("%pOF successfully cleared tces in window.\n", 824 + np); 825 825 826 826 ret = rtas_call(ddw_avail[2], 1, 1, NULL, liobn); 827 827 if (ret) 828 - pr_warning("%s: failed to remove direct window: rtas returned " 828 + pr_warning("%pOF: failed to remove direct window: rtas returned " 829 829 "%d to ibm,remove-pe-dma-window(%x) %llx\n", 830 - np->full_name, ret, ddw_avail[2], liobn); 830 + np, ret, ddw_avail[2], liobn); 831 831 else 832 - pr_debug("%s: successfully removed direct window: rtas returned " 832 + pr_debug("%pOF: successfully removed direct window: rtas returned " 833 833 "%d to ibm,remove-pe-dma-window(%x) %llx\n", 834 - np->full_name, ret, ddw_avail[2], liobn); 834 + np, ret, ddw_avail[2], liobn); 835 835 836 836 delprop: 837 837 if (remove_prop) 838 838 ret = of_remove_property(np, win64); 839 839 if (ret) 840 - pr_warning("%s: failed to remove direct window property: %d\n", 841 - np->full_name, ret); 840 + pr_warning("%pOF: failed to remove direct window property: %d\n", 841 + np, ret); 842 842 } 843 843 844 844 static u64 find_existing_ddw(struct device_node *pdn) ··· 1004 1004 * list. 1005 1005 */ 1006 1006 list_for_each_entry(fpdn, &failed_ddw_pdn_list, list) { 1007 - if (!strcmp(fpdn->pdn->full_name, pdn->full_name)) 1007 + if (fpdn->pdn == pdn) 1008 1008 goto out_unlock; 1009 1009 } 1010 1010 ··· 1087 1087 ddwprop->tce_shift = cpu_to_be32(page_shift); 1088 1088 ddwprop->window_shift = cpu_to_be32(len); 1089 1089 1090 - dev_dbg(&dev->dev, "created tce table LIOBN 0x%x for %s\n", 1091 - create.liobn, dn->full_name); 1090 + dev_dbg(&dev->dev, "created tce table LIOBN 0x%x for %pOF\n", 1091 + create.liobn, dn); 1092 1092 1093 1093 window = kzalloc(sizeof(*window), GFP_KERNEL); 1094 1094 if (!window) ··· 1097 1097 ret = walk_system_ram_range(0, memblock_end_of_DRAM() >> PAGE_SHIFT, 1098 1098 win64->value, tce_setrange_multi_pSeriesLP_walk); 1099 1099 if (ret) { 1100 - dev_info(&dev->dev, "failed to map direct window for %s: %d\n", 1101 - dn->full_name, ret); 1100 + dev_info(&dev->dev, "failed to map direct window for %pOF: %d\n", 1101 + dn, ret); 1102 1102 goto out_free_window; 1103 1103 } 1104 1104 1105 1105 ret = of_add_property(pdn, win64); 1106 1106 if (ret) { 1107 - dev_err(&dev->dev, "unable to add dma window property for %s: %d", 1108 - pdn->full_name, ret); 1107 + dev_err(&dev->dev, "unable to add dma window property for %pOF: %d", 1108 + pdn, ret); 1109 1109 goto out_free_window; 1110 1110 } 1111 1111 ··· 1158 1158 * already allocated. 1159 1159 */ 1160 1160 dn = pci_device_to_OF_node(dev); 1161 - pr_debug(" node is %s\n", dn->full_name); 1161 + pr_debug(" node is %pOF\n", dn); 1162 1162 1163 1163 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; 1164 1164 pdn = pdn->parent) { ··· 1169 1169 1170 1170 if (!pdn || !PCI_DN(pdn)) { 1171 1171 printk(KERN_WARNING "pci_dma_dev_setup_pSeriesLP: " 1172 - "no DMA window found for pci dev=%s dn=%s\n", 1173 - pci_name(dev), of_node_full_name(dn)); 1172 + "no DMA window found for pci dev=%s dn=%pOF\n", 1173 + pci_name(dev), dn); 1174 1174 return; 1175 1175 } 1176 - pr_debug(" parent is %s\n", pdn->full_name); 1176 + pr_debug(" parent is %pOF\n", pdn); 1177 1177 1178 1178 pci = PCI_DN(pdn); 1179 1179 if (!pci->table_group) { ··· 1213 1213 /* only attempt to use a new window if 64-bit DMA is requested */ 1214 1214 if (!disable_ddw && dma_mask == DMA_BIT_MASK(64)) { 1215 1215 dn = pci_device_to_OF_node(pdev); 1216 - dev_dbg(dev, "node is %s\n", dn->full_name); 1216 + dev_dbg(dev, "node is %pOF\n", dn); 1217 1217 1218 1218 /* 1219 1219 * the device tree might contain the dma-window properties
+6 -6
arch/powerpc/platforms/pseries/msi.c
··· 144 144 145 145 p = of_get_property(dn, prop_name, NULL); 146 146 if (!p) { 147 - pr_debug("rtas_msi: No %s on %s\n", prop_name, dn->full_name); 147 + pr_debug("rtas_msi: No %s on %pOF\n", prop_name, dn); 148 148 return -ENOENT; 149 149 } 150 150 ··· 182 182 while (dn) { 183 183 p = of_get_property(dn, "ibm,pe-total-#msi", NULL); 184 184 if (p) { 185 - pr_debug("rtas_msi: found prop on dn %s\n", 186 - dn->full_name); 185 + pr_debug("rtas_msi: found prop on dn %pOF\n", 186 + dn); 187 187 *total = be32_to_cpup(p); 188 188 return dn; 189 189 } ··· 222 222 223 223 /* Hardcode of 8 for old firmwares */ 224 224 *total = 8; 225 - pr_debug("rtas_msi: using PE dn %s\n", dn->full_name); 225 + pr_debug("rtas_msi: using PE dn %pOF\n", dn); 226 226 227 227 return dn; 228 228 } ··· 242 242 const __be32 *p; 243 243 u32 class; 244 244 245 - pr_debug("rtas_msi: counting %s\n", dn->full_name); 245 + pr_debug("rtas_msi: counting %pOF\n", dn); 246 246 247 247 p = of_get_property(dn, "class-code", NULL); 248 248 class = p ? be32_to_cpup(p) : 0; ··· 300 300 goto out; 301 301 } 302 302 303 - pr_debug("rtas_msi: found PE %s\n", pe_dn->full_name); 303 + pr_debug("rtas_msi: found PE %pOF\n", pe_dn); 304 304 305 305 memset(&counts, 0, sizeof(struct msi_counts)); 306 306
+1 -1
arch/powerpc/platforms/pseries/pci_dlpar.c
··· 38 38 { 39 39 struct pci_controller *phb; 40 40 41 - pr_debug("PCI: Initializing new hotplug PHB %s\n", dn->full_name); 41 + pr_debug("PCI: Initializing new hotplug PHB %pOF\n", dn); 42 42 43 43 phb = pcibios_alloc_controller(dn); 44 44 if (!phb)
+3 -3
arch/powerpc/platforms/pseries/vio.c
··· 1362 1362 else if (!strcmp(parent_node->type, "vdevice")) 1363 1363 family = VDEVICE; 1364 1364 else { 1365 - pr_warn("%s: parent(%s) of %s not recognized.\n", 1365 + pr_warn("%s: parent(%pOF) of %s not recognized.\n", 1366 1366 __func__, 1367 - parent_node->full_name, 1367 + parent_node, 1368 1368 of_node_name); 1369 1369 of_node_put(parent_node); 1370 1370 return NULL; ··· 1555 1555 { 1556 1556 struct device_node *of_node = dev->of_node; 1557 1557 1558 - return sprintf(buf, "%s\n", of_node_full_name(of_node)); 1558 + return sprintf(buf, "%pOF\n", of_node); 1559 1559 } 1560 1560 static DEVICE_ATTR_RO(devspec); 1561 1561
+2 -2
arch/powerpc/sysdev/axonram.c
··· 188 188 189 189 axon_ram_bank_id++; 190 190 191 - dev_info(&device->dev, "Found memory controller on %s\n", 192 - device->dev.of_node->full_name); 191 + dev_info(&device->dev, "Found memory controller on %pOF\n", 192 + device->dev.of_node); 193 193 194 194 bank = kzalloc(sizeof(struct axon_ram_bank), GFP_KERNEL); 195 195 if (bank == NULL) {
+2 -2
arch/powerpc/sysdev/dcr.c
··· 195 195 dcr_host_mmio_t ret = { .token = NULL, .stride = 0, .base = dcr_n }; 196 196 u64 addr; 197 197 198 - pr_debug("dcr_map(%s, 0x%x, 0x%x)\n", 199 - dev->full_name, dcr_n, dcr_c); 198 + pr_debug("dcr_map(%pOF, 0x%x, 0x%x)\n", 199 + dev, dcr_n, dcr_c); 200 200 201 201 addr = of_translate_dcr_address(dev, dcr_n, &ret.stride); 202 202 pr_debug("translates to addr: 0x%llx, stride: 0x%x\n",
+6 -6
arch/powerpc/sysdev/fsl_85xx_cache_sram.c
··· 101 101 102 102 if (!request_mem_region(cache_sram->base_phys, cache_sram->size, 103 103 "fsl_85xx_cache_sram")) { 104 - dev_err(&dev->dev, "%s: request memory failed\n", 105 - dev->dev.of_node->full_name); 104 + dev_err(&dev->dev, "%pOF: request memory failed\n", 105 + dev->dev.of_node); 106 106 ret = -ENXIO; 107 107 goto out_free; 108 108 } ··· 110 110 cache_sram->base_virt = ioremap_prot(cache_sram->base_phys, 111 111 cache_sram->size, _PAGE_COHERENT | PAGE_KERNEL); 112 112 if (!cache_sram->base_virt) { 113 - dev_err(&dev->dev, "%s: ioremap_prot failed\n", 114 - dev->dev.of_node->full_name); 113 + dev_err(&dev->dev, "%pOF: ioremap_prot failed\n", 114 + dev->dev.of_node); 115 115 ret = -ENOMEM; 116 116 goto out_release; 117 117 } 118 118 119 119 cache_sram->rh = rh_create(sizeof(unsigned int)); 120 120 if (IS_ERR(cache_sram->rh)) { 121 - dev_err(&dev->dev, "%s: Unable to create remote heap\n", 122 - dev->dev.of_node->full_name); 121 + dev_err(&dev->dev, "%pOF: Unable to create remote heap\n", 122 + dev->dev.of_node); 123 123 ret = PTR_ERR(cache_sram->rh); 124 124 goto out_unmap; 125 125 }
+7 -7
arch/powerpc/sysdev/fsl_gtm.c
··· 388 388 389 389 gtm = kzalloc(sizeof(*gtm), GFP_KERNEL); 390 390 if (!gtm) { 391 - pr_err("%s: unable to allocate memory\n", 392 - np->full_name); 391 + pr_err("%pOF: unable to allocate memory\n", 392 + np); 393 393 continue; 394 394 } 395 395 ··· 397 397 398 398 clock = of_get_property(np, "clock-frequency", &size); 399 399 if (!clock || size != sizeof(*clock)) { 400 - pr_err("%s: no clock-frequency\n", np->full_name); 400 + pr_err("%pOF: no clock-frequency\n", np); 401 401 goto err; 402 402 } 403 403 gtm->clock = *clock; ··· 407 407 408 408 irq = irq_of_parse_and_map(np, i); 409 409 if (!irq) { 410 - pr_err("%s: not enough interrupts specified\n", 411 - np->full_name); 410 + pr_err("%pOF: not enough interrupts specified\n", 411 + np); 412 412 goto err; 413 413 } 414 414 gtm->timers[i].irq = irq; ··· 417 417 418 418 gtm->regs = of_iomap(np, 0); 419 419 if (!gtm->regs) { 420 - pr_err("%s: unable to iomap registers\n", 421 - np->full_name); 420 + pr_err("%pOF: unable to iomap registers\n", 421 + np); 422 422 goto err; 423 423 } 424 424
+8 -8
arch/powerpc/sysdev/fsl_msi.c
··· 214 214 phandle = np->phandle; 215 215 else { 216 216 dev_err(&pdev->dev, 217 - "node %s has an invalid fsl,msi phandle %u\n", 218 - hose->dn->full_name, np->phandle); 217 + "node %pOF has an invalid fsl,msi phandle %u\n", 218 + hose->dn, np->phandle); 219 219 return -EINVAL; 220 220 } 221 221 } ··· 438 438 if ((features->fsl_pic_ip & FSL_PIC_IP_MASK) != FSL_PIC_IP_VMPIC) { 439 439 err = of_address_to_resource(dev->dev.of_node, 0, &res); 440 440 if (err) { 441 - dev_err(&dev->dev, "invalid resource for node %s\n", 442 - dev->dev.of_node->full_name); 441 + dev_err(&dev->dev, "invalid resource for node %pOF\n", 442 + dev->dev.of_node); 443 443 goto error_out; 444 444 } 445 445 446 446 msi->msi_regs = ioremap(res.start, resource_size(&res)); 447 447 if (!msi->msi_regs) { 448 448 err = -ENOMEM; 449 - dev_err(&dev->dev, "could not map node %s\n", 450 - dev->dev.of_node->full_name); 449 + dev_err(&dev->dev, "could not map node %pOF\n", 450 + dev->dev.of_node); 451 451 goto error_out; 452 452 } 453 453 msi->msiir_offset = ··· 522 522 for (irq_index = 0, i = 0; i < len / (2 * sizeof(u32)); i++) { 523 523 if (p[i * 2] % IRQS_PER_MSI_REG || 524 524 p[i * 2 + 1] % IRQS_PER_MSI_REG) { 525 - pr_warn("%s: %s: msi available range of %u at %u is not IRQ-aligned\n", 526 - __func__, dev->dev.of_node->full_name, 525 + pr_warn("%s: %pOF: msi available range of %u at %u is not IRQ-aligned\n", 526 + __func__, dev->dev.of_node, 527 527 p[i * 2 + 1], p[i * 2]); 528 528 err = -EINVAL; 529 529 goto error_out;
+23 -24
arch/powerpc/sysdev/fsl_pci.c
··· 202 202 u32 pcicsrbar = 0, pcicsrbar_sz; 203 203 u32 piwar = PIWAR_EN | PIWAR_PF | PIWAR_TGI_LOCAL | 204 204 PIWAR_READ_SNOOP | PIWAR_WRITE_SNOOP; 205 - const char *name = hose->dn->full_name; 206 205 const u64 *reg; 207 206 int len; 208 207 bool setup_inbound; ··· 289 290 paddr_lo -= offset; 290 291 291 292 if (paddr_hi == paddr_lo) { 292 - pr_err("%s: No outbound window space\n", name); 293 + pr_err("%pOF: No outbound window space\n", hose->dn); 293 294 return; 294 295 } 295 296 296 297 if (paddr_lo == 0) { 297 - pr_err("%s: No space for inbound window\n", name); 298 + pr_err("%pOF: No space for inbound window\n", hose->dn); 298 299 return; 299 300 } 300 301 ··· 312 313 313 314 paddr_lo = min(paddr_lo, (u64)pcicsrbar); 314 315 315 - pr_info("%s: PCICSRBAR @ 0x%x\n", name, pcicsrbar); 316 + pr_info("%pOF: PCICSRBAR @ 0x%x\n", hose->dn, pcicsrbar); 316 317 317 318 /* Setup inbound mem window */ 318 319 mem = memblock_end_of_DRAM(); ··· 335 336 u64 address = be64_to_cpup(reg); 336 337 337 338 if ((address >= mem) && (address < (mem + PAGE_SIZE))) { 338 - pr_info("%s: extending DDR ATMU to cover MSIIR", name); 339 + pr_info("%pOF: extending DDR ATMU to cover MSIIR", hose->dn); 339 340 mem += PAGE_SIZE; 340 341 } else { 341 342 /* TODO: Create a new ATMU for MSIIR */ 342 - pr_warn("%s: msi-address-64 address of %llx is " 343 - "unsupported\n", name, address); 343 + pr_warn("%pOF: msi-address-64 address of %llx is " 344 + "unsupported\n", hose->dn, address); 344 345 } 345 346 } 346 347 ··· 353 354 if ((1ull << mem_log) != mem) { 354 355 mem_log++; 355 356 if ((1ull << mem_log) > mem) 356 - pr_info("%s: Setting PCI inbound window " 357 - "greater than memory size\n", name); 357 + pr_info("%pOF: Setting PCI inbound window " 358 + "greater than memory size\n", hose->dn); 358 359 } 359 360 360 361 piwar |= ((mem_log - 1) & PIWAR_SZ_MASK); ··· 401 402 */ 402 403 ppc_md.dma_set_mask = fsl_pci_dma_set_mask; 403 404 404 - pr_info("%s: Setup 64-bit PCI DMA window\n", name); 405 + pr_info("%pOF: Setup 64-bit PCI DMA window\n", hose->dn); 405 406 } 406 407 } else { 407 408 u64 paddr = 0; ··· 442 443 #ifdef CONFIG_SWIOTLB 443 444 ppc_swiotlb_enable = 1; 444 445 #else 445 - pr_err("%s: ERROR: Memory size exceeds PCI ATMU ability to " 446 + pr_err("%pOF: ERROR: Memory size exceeds PCI ATMU ability to " 446 447 "map - enable CONFIG_SWIOTLB to avoid dma errors.\n", 447 - name); 448 + hose->dn); 448 449 #endif 449 450 /* adjusting outbound windows could reclaim space in mem map */ 450 451 if (paddr_hi < 0xffffffffull) 451 - pr_warning("%s: WARNING: Outbound window cfg leaves " 452 + pr_warning("%pOF: WARNING: Outbound window cfg leaves " 452 453 "gaps in memory map. Adjusting the memory map " 453 454 "could reduce unnecessary bounce buffering.\n", 454 - name); 455 + hose->dn); 455 456 456 - pr_info("%s: DMA window size is 0x%llx\n", name, 457 + pr_info("%pOF: DMA window size is 0x%llx\n", hose->dn, 457 458 (u64)hose->dma_window_size); 458 459 } 459 460 } ··· 531 532 dev = pdev->dev.of_node; 532 533 533 534 if (!of_device_is_available(dev)) { 534 - pr_warning("%s: disabled\n", dev->full_name); 535 + pr_warning("%pOF: disabled\n", dev); 535 536 return -ENODEV; 536 537 } 537 538 538 - pr_debug("Adding PCI host bridge %s\n", dev->full_name); 539 + pr_debug("Adding PCI host bridge %pOF\n", dev); 539 540 540 541 /* Fetch host bridge registers address */ 541 542 if (of_address_to_resource(dev, 0, &rsrc)) { ··· 546 547 /* Get bus range if any */ 547 548 bus_range = of_get_property(dev, "bus-range", &len); 548 549 if (bus_range == NULL || len < 2 * sizeof(int)) 549 - printk(KERN_WARNING "Can't get bus-range for %s, assume" 550 - " bus 0\n", dev->full_name); 550 + printk(KERN_WARNING "Can't get bus-range for %pOF, assume" 551 + " bus 0\n", dev); 551 552 552 553 pci_add_flags(PCI_REASSIGN_ALL_BUS); 553 554 hose = pcibios_alloc_controller(dev); ··· 808 809 is_mpc83xx_pci = 1; 809 810 810 811 if (!of_device_is_available(dev)) { 811 - pr_warning("%s: disabled by the firmware.\n", 812 - dev->full_name); 812 + pr_warning("%pOF: disabled by the firmware.\n", 813 + dev); 813 814 return -ENODEV; 814 815 } 815 - pr_debug("Adding PCI host bridge %s\n", dev->full_name); 816 + pr_debug("Adding PCI host bridge %pOF\n", dev); 816 817 817 818 /* Fetch host bridge registers address */ 818 819 if (of_address_to_resource(dev, 0, &rsrc_reg)) { ··· 847 848 /* Get bus range if any */ 848 849 bus_range = of_get_property(dev, "bus-range", &len); 849 850 if (bus_range == NULL || len < 2 * sizeof(int)) { 850 - printk(KERN_WARNING "Can't get bus-range for %s, assume" 851 - " bus 0\n", dev->full_name); 851 + printk(KERN_WARNING "Can't get bus-range for %pOF, assume" 852 + " bus 0\n", dev); 852 853 } 853 854 854 855 pci_add_flags(PCI_REASSIGN_ALL_BUS);
+18 -18
arch/powerpc/sysdev/fsl_rio.c
··· 450 450 451 451 rc = of_address_to_resource(dev->dev.of_node, 0, &regs); 452 452 if (rc) { 453 - dev_err(&dev->dev, "Can't get %s property 'reg'\n", 454 - dev->dev.of_node->full_name); 453 + dev_err(&dev->dev, "Can't get %pOF property 'reg'\n", 454 + dev->dev.of_node); 455 455 return -EFAULT; 456 456 } 457 - dev_info(&dev->dev, "Of-device full name %s\n", 458 - dev->dev.of_node->full_name); 457 + dev_info(&dev->dev, "Of-device full name %pOF\n", 458 + dev->dev.of_node); 459 459 dev_info(&dev->dev, "Regs: %pR\n", &regs); 460 460 461 461 rio_regs_win = ioremap(regs.start, resource_size(&regs)); ··· 494 494 } 495 495 rc = of_address_to_resource(rmu_node, 0, &rmu_regs); 496 496 if (rc) { 497 - dev_err(&dev->dev, "Can't get %s property 'reg'\n", 498 - rmu_node->full_name); 497 + dev_err(&dev->dev, "Can't get %pOF property 'reg'\n", 498 + rmu_node); 499 499 goto err_rmu; 500 500 } 501 501 rmu_regs_win = ioremap(rmu_regs.start, resource_size(&rmu_regs)); ··· 529 529 aw = of_n_addr_cells(np); 530 530 dt_range = of_get_property(np, "reg", &rlen); 531 531 if (!dt_range) { 532 - pr_err("%s: unable to find 'reg' property\n", 533 - np->full_name); 532 + pr_err("%pOF: unable to find 'reg' property\n", 533 + np); 534 534 rc = -ENOMEM; 535 535 goto err_pw; 536 536 } ··· 557 557 aw = of_n_addr_cells(np); 558 558 dt_range = of_get_property(np, "reg", &rlen); 559 559 if (!dt_range) { 560 - pr_err("%s: unable to find 'reg' property\n", 561 - np->full_name); 560 + pr_err("%pOF: unable to find 'reg' property\n", 561 + np); 562 562 rc = -ENOMEM; 563 563 goto err; 564 564 } ··· 569 569 for_each_child_of_node(dev->dev.of_node, np) { 570 570 port_index = of_get_property(np, "cell-index", NULL); 571 571 if (!port_index) { 572 - dev_err(&dev->dev, "Can't get %s property 'cell-index'\n", 573 - np->full_name); 572 + dev_err(&dev->dev, "Can't get %pOF property 'cell-index'\n", 573 + np); 574 574 continue; 575 575 } 576 576 577 577 dt_range = of_get_property(np, "ranges", &rlen); 578 578 if (!dt_range) { 579 - dev_err(&dev->dev, "Can't get %s property 'ranges'\n", 580 - np->full_name); 579 + dev_err(&dev->dev, "Can't get %pOF property 'ranges'\n", 580 + np); 581 581 continue; 582 582 } 583 583 ··· 598 598 range_start = of_read_number(dt_range + aw, paw); 599 599 range_size = of_read_number(dt_range + aw + paw, sw); 600 600 601 - dev_info(&dev->dev, "%s: LAW start 0x%016llx, size 0x%016llx.\n", 602 - np->full_name, range_start, range_size); 601 + dev_info(&dev->dev, "%pOF: LAW start 0x%016llx, size 0x%016llx.\n", 602 + np, range_start, range_size); 603 603 604 604 port = kzalloc(sizeof(struct rio_mport), GFP_KERNEL); 605 605 if (!port) ··· 757 757 */ 758 758 static int fsl_of_rio_rpn_probe(struct platform_device *dev) 759 759 { 760 - printk(KERN_INFO "Setting up RapidIO peer-to-peer network %s\n", 761 - dev->dev.of_node->full_name); 760 + printk(KERN_INFO "Setting up RapidIO peer-to-peer network %pOF\n", 761 + dev->dev.of_node); 762 762 763 763 return fsl_rio_setup(dev); 764 764 };
+6 -6
arch/powerpc/sysdev/fsl_rmu.c
··· 1074 1074 priv = mport->priv; 1075 1075 1076 1076 if (!node) { 1077 - dev_warn(priv->dev, "Can't get %s property 'fsl,rmu'\n", 1078 - priv->dev->of_node->full_name); 1077 + dev_warn(priv->dev, "Can't get %pOF property 'fsl,rmu'\n", 1078 + priv->dev->of_node); 1079 1079 return -EINVAL; 1080 1080 } 1081 1081 ··· 1086 1086 aw = of_n_addr_cells(node); 1087 1087 msg_addr = of_get_property(node, "reg", &mlen); 1088 1088 if (!msg_addr) { 1089 - pr_err("%s: unable to find 'reg' property of message-unit\n", 1090 - node->full_name); 1089 + pr_err("%pOF: unable to find 'reg' property of message-unit\n", 1090 + node); 1091 1091 kfree(rmu); 1092 1092 return -ENOMEM; 1093 1093 } ··· 1098 1098 1099 1099 rmu->txirq = irq_of_parse_and_map(node, 0); 1100 1100 rmu->rxirq = irq_of_parse_and_map(node, 1); 1101 - printk(KERN_INFO "%s: txirq: %d, rxirq %d\n", 1102 - node->full_name, rmu->txirq, rmu->rxirq); 1101 + printk(KERN_INFO "%pOF: txirq: %d, rxirq %d\n", 1102 + node, rmu->txirq, rmu->rxirq); 1103 1103 1104 1104 priv->rmm_handle = rmu; 1105 1105
+2 -2
arch/powerpc/sysdev/mpic.c
··· 1650 1650 if (mpic->flags & MPIC_SECONDARY) { 1651 1651 int virq = irq_of_parse_and_map(mpic->node, 0); 1652 1652 if (virq) { 1653 - printk(KERN_INFO "%s: hooking up to IRQ %d\n", 1654 - mpic->node->full_name, virq); 1653 + printk(KERN_INFO "%pOF: hooking up to IRQ %d\n", 1654 + mpic->node, virq); 1655 1655 irq_set_handler_data(virq, mpic); 1656 1656 irq_set_chained_handler(virq, &mpic_cascade); 1657 1657 }
+1 -1
arch/powerpc/sysdev/mpic_msgr.c
··· 192 192 return -ENOMEM; 193 193 } 194 194 } 195 - dev_info(&dev->dev, "Of-device full name %s\n", np->full_name); 195 + dev_info(&dev->dev, "Of-device full name %pOF\n", np); 196 196 197 197 /* IO map the message register block. */ 198 198 of_address_to_resource(np, 0, &rsrc);
+1 -1
arch/powerpc/sysdev/mpic_msi.c
··· 60 60 61 61 np = NULL; 62 62 while ((np = of_find_all_nodes(np))) { 63 - pr_debug("mpic: mapping hwirqs for %s\n", np->full_name); 63 + pr_debug("mpic: mapping hwirqs for %pOF\n", np); 64 64 65 65 index = 0; 66 66 while (of_irq_parse_one(np, index++, &oirq) == 0) {
+7 -12
arch/powerpc/sysdev/mpic_timer.c
··· 466 466 467 467 p = of_get_property(np, "fsl,available-ranges", &len); 468 468 if (p && len % (2 * sizeof(u32)) != 0) { 469 - pr_err("%s: malformed available-ranges property.\n", 470 - np->full_name); 469 + pr_err("%pOF: malformed available-ranges property.\n", np); 471 470 return -EINVAL; 472 471 } 473 472 ··· 483 484 for (j = 0; j < count; j++) { 484 485 irq = irq_of_parse_and_map(np, irq_index); 485 486 if (!irq) { 486 - pr_err("%s: irq parse and map failed.\n", 487 - np->full_name); 487 + pr_err("%pOF: irq parse and map failed.\n", np); 488 488 return -EINVAL; 489 489 } 490 490 ··· 506 508 507 509 priv = kzalloc(sizeof(struct timer_group_priv), GFP_KERNEL); 508 510 if (!priv) { 509 - pr_err("%s: cannot allocate memory for group.\n", 510 - np->full_name); 511 + pr_err("%pOF: cannot allocate memory for group.\n", np); 511 512 return; 512 513 } 513 514 ··· 515 518 516 519 priv->regs = of_iomap(np, i++); 517 520 if (!priv->regs) { 518 - pr_err("%s: cannot ioremap timer register address.\n", 519 - np->full_name); 521 + pr_err("%pOF: cannot ioremap timer register address.\n", np); 520 522 goto out; 521 523 } 522 524 523 525 if (priv->flags & FSL_GLOBAL_TIMER) { 524 526 priv->group_tcr = of_iomap(np, i++); 525 527 if (!priv->group_tcr) { 526 - pr_err("%s: cannot ioremap tcr address.\n", 527 - np->full_name); 528 + pr_err("%pOF: cannot ioremap tcr address.\n", np); 528 529 goto out; 529 530 } 530 531 } 531 532 532 533 ret = timer_group_get_freq(np, priv); 533 534 if (ret < 0) { 534 - pr_err("%s: cannot get timer frequency.\n", np->full_name); 535 + pr_err("%pOF: cannot get timer frequency.\n", np); 535 536 goto out; 536 537 } 537 538 538 539 ret = timer_group_get_irq(np, priv); 539 540 if (ret < 0) { 540 - pr_err("%s: cannot get timer irqs.\n", np->full_name); 541 + pr_err("%pOF: cannot get timer irqs.\n", np); 541 542 goto out; 542 543 } 543 544
+2 -2
arch/powerpc/sysdev/msi_bitmap.c
··· 86 86 p = of_get_property(bmp->of_node, "msi-available-ranges", &len); 87 87 if (!p) { 88 88 pr_debug("msi_bitmap: no msi-available-ranges property " \ 89 - "found on %s\n", bmp->of_node->full_name); 89 + "found on %pOF\n", bmp->of_node); 90 90 return 1; 91 91 } 92 92 93 93 if (len % (2 * sizeof(u32)) != 0) { 94 94 printk(KERN_WARNING "msi_bitmap: Malformed msi-available-ranges" 95 - " property on %s\n", bmp->of_node->full_name); 95 + " property on %pOF\n", bmp->of_node); 96 96 return -EINVAL; 97 97 } 98 98
+10 -10
arch/powerpc/sysdev/mv64x60_dev.c
··· 452 452 err = mv64x60_mpsc_device_setup(np, id++); 453 453 if (err) 454 454 printk(KERN_ERR "Failed to initialize MV64x60 " 455 - "serial device %s: error %d.\n", 456 - np->full_name, err); 455 + "serial device %pOF: error %d.\n", 456 + np, err); 457 457 } 458 458 459 459 id = 0; ··· 463 463 if (IS_ERR(pdev)) { 464 464 err = PTR_ERR(pdev); 465 465 printk(KERN_ERR "Failed to initialize MV64x60 " 466 - "network block %s: error %d.\n", 467 - np->full_name, err); 466 + "network block %pOF: error %d.\n", 467 + np, err); 468 468 continue; 469 469 } 470 470 for_each_child_of_node(np, np2) { ··· 474 474 err = mv64x60_eth_device_setup(np2, id2++, pdev); 475 475 if (err) 476 476 printk(KERN_ERR "Failed to initialize " 477 - "MV64x60 network device %s: " 477 + "MV64x60 network device %pOF: " 478 478 "error %d.\n", 479 - np2->full_name, err); 479 + np2, err); 480 480 } 481 481 } 482 482 ··· 485 485 err = mv64x60_i2c_device_setup(np, id++); 486 486 if (err) 487 487 printk(KERN_ERR "Failed to initialize MV64x60 I2C " 488 - "bus %s: error %d.\n", 489 - np->full_name, err); 488 + "bus %pOF: error %d.\n", 489 + np, err); 490 490 } 491 491 492 492 /* support up to one watchdog timer */ ··· 494 494 if (np) { 495 495 if ((err = mv64x60_wdt_device_setup(np, id))) 496 496 printk(KERN_ERR "Failed to initialize MV64x60 " 497 - "Watchdog %s: error %d.\n", 498 - np->full_name, err); 497 + "Watchdog %pOF: error %d.\n", 498 + np, err); 499 499 of_node_put(np); 500 500 } 501 501
+2 -2
arch/powerpc/sysdev/mv64x60_pci.c
··· 136 136 /* Get bus range if any */ 137 137 bus_range = of_get_property(dev, "bus-range", &len); 138 138 if (bus_range == NULL || len < 2 * sizeof(int)) 139 - printk(KERN_WARNING "Can't get bus-range for %s, assume" 140 - " bus 0\n", dev->full_name); 139 + printk(KERN_WARNING "Can't get bus-range for %pOF, assume" 140 + " bus 0\n", dev); 141 141 142 142 hose = pcibios_alloc_controller(dev); 143 143 if (!hose)
+6 -6
arch/powerpc/sysdev/of_rtc.c
··· 38 38 res = kmalloc(sizeof(*res), GFP_KERNEL); 39 39 if (!res) { 40 40 printk(KERN_ERR "OF RTC: Out of memory " 41 - "allocating resource structure for %s\n", 42 - node->full_name); 41 + "allocating resource structure for %pOF\n", 42 + node); 43 43 continue; 44 44 } 45 45 46 46 err = of_address_to_resource(node, 0, res); 47 47 if (err) { 48 48 printk(KERN_ERR "OF RTC: Error " 49 - "translating resources for %s\n", 50 - node->full_name); 49 + "translating resources for %pOF\n", 50 + node); 51 51 continue; 52 52 } 53 53 54 - printk(KERN_INFO "OF_RTC: %s is a %s @ 0x%llx-0x%llx\n", 55 - node->full_name, plat_name, 54 + printk(KERN_INFO "OF_RTC: %pOF is a %s @ 0x%llx-0x%llx\n", 55 + node, plat_name, 56 56 (unsigned long long)res->start, 57 57 (unsigned long long)res->end); 58 58 platform_device_register_simple(plat_name, -1, res, 1);
+3 -2
arch/powerpc/sysdev/scom.c
··· 194 194 195 195 ent->dn = of_node_get(dn); 196 196 snprintf(ent->name, 16, "%08x", i); 197 - ent->path.data = (void*) dn->full_name; 198 - ent->path.size = strlen(dn->full_name); 197 + ent->path.data = (void*)kasprintf(GFP_KERNEL, "%pOF", dn); 198 + ent->path.size = strlen((char *)ent->path.data); 199 199 200 200 dir = debugfs_create_dir(ent->name, root); 201 201 if (!dir) { 202 202 of_node_put(dn); 203 + kfree(ent->path.data); 203 204 kfree(ent); 204 205 return -1; 205 206 }
+1 -2
arch/powerpc/sysdev/simple_gpio.c
··· 142 142 } 143 143 continue; 144 144 err: 145 - pr_err("%s: registration failed, status %d\n", 146 - np->full_name, ret); 145 + pr_err("%pOF: registration failed, status %d\n", np, ret); 147 146 } 148 147 }
+2 -2
arch/powerpc/sysdev/tsi108_pci.c
··· 213 213 /* Get bus range if any */ 214 214 bus_range = of_get_property(dev, "bus-range", &len); 215 215 if (bus_range == NULL || len < 2 * sizeof(int)) { 216 - printk(KERN_WARNING "Can't get bus-range for %s, assume" 217 - " bus 0\n", dev->full_name); 216 + printk(KERN_WARNING "Can't get bus-range for %pOF, assume" 217 + " bus 0\n", dev); 218 218 } 219 219 220 220 hose = pcibios_alloc_controller(dev);
+1 -1
arch/powerpc/sysdev/xive/native.c
··· 551 551 pr_devel("not found !\n"); 552 552 return false; 553 553 } 554 - pr_devel("Found %s\n", np->full_name); 554 + pr_devel("Found %pOF\n", np); 555 555 556 556 /* Resource 1 is HV window */ 557 557 if (of_address_to_resource(np, 1, &r)) {