diff options
author | Rob Herring <robh@kernel.org> | 2018-11-16 16:06:54 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-18 16:35:19 -0500 |
commit | a412c85aa82a5c8d585b08808aeefcd186712bb5 (patch) | |
tree | bf7216c8fe39c0beb00ffb18511b01bc93b696d3 | |
parent | f3180e1828e63eae22269ec81ab627f647d43f39 (diff) |
sparc: 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.
Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/sparc/kernel/auxio_64.c | 3 | ||||
-rw-r--r-- | arch/sparc/kernel/chmc.c | 8 | ||||
-rw-r--r-- | arch/sparc/kernel/of_device_32.c | 7 | ||||
-rw-r--r-- | arch/sparc/kernel/of_device_64.c | 36 | ||||
-rw-r--r-- | arch/sparc/kernel/pci.c | 31 | ||||
-rw-r--r-- | arch/sparc/kernel/prom_32.c | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/sbus.c | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/sun4d_irq.c | 8 | ||||
-rw-r--r-- | arch/sparc/kernel/time_64.c | 12 | ||||
-rw-r--r-- | arch/sparc/kernel/vio.c | 2 |
10 files changed, 55 insertions, 60 deletions
diff --git a/arch/sparc/kernel/auxio_64.c b/arch/sparc/kernel/auxio_64.c index 4e8f56c3793c..6145658d915a 100644 --- a/arch/sparc/kernel/auxio_64.c +++ b/arch/sparc/kernel/auxio_64.c | |||
@@ -123,8 +123,7 @@ static int auxio_probe(struct platform_device *dev) | |||
123 | if (!auxio_register) | 123 | if (!auxio_register) |
124 | return -ENODEV; | 124 | return -ENODEV; |
125 | 125 | ||
126 | printk(KERN_INFO "AUXIO: Found device at %s\n", | 126 | printk(KERN_INFO "AUXIO: Found device at %pOF\n", dp); |
127 | dp->full_name); | ||
128 | 127 | ||
129 | if (auxio_devtype == AUXIO_TYPE_EBUS) | 128 | if (auxio_devtype == AUXIO_TYPE_EBUS) |
130 | auxio_set_led(AUXIO_LED_ON); | 129 | auxio_set_led(AUXIO_LED_ON); |
diff --git a/arch/sparc/kernel/chmc.c b/arch/sparc/kernel/chmc.c index 0de4bcb8261f..61fe1b951ba3 100644 --- a/arch/sparc/kernel/chmc.c +++ b/arch/sparc/kernel/chmc.c | |||
@@ -464,8 +464,8 @@ static int jbusmc_probe(struct platform_device *op) | |||
464 | 464 | ||
465 | mc_list_add(&p->list); | 465 | mc_list_add(&p->list); |
466 | 466 | ||
467 | printk(KERN_INFO PFX "UltraSPARC-IIIi memory controller at %s\n", | 467 | printk(KERN_INFO PFX "UltraSPARC-IIIi memory controller at %pOF\n", |
468 | op->dev.of_node->full_name); | 468 | op->dev.of_node); |
469 | 469 | ||
470 | dev_set_drvdata(&op->dev, p); | 470 | dev_set_drvdata(&op->dev, p); |
471 | 471 | ||
@@ -747,8 +747,8 @@ static int chmc_probe(struct platform_device *op) | |||
747 | 747 | ||
748 | mc_list_add(&p->list); | 748 | mc_list_add(&p->list); |
749 | 749 | ||
750 | printk(KERN_INFO PFX "UltraSPARC-III memory controller at %s [%s]\n", | 750 | printk(KERN_INFO PFX "UltraSPARC-III memory controller at %pOF [%s]\n", |
751 | dp->full_name, | 751 | dp, |
752 | (p->layout_size ? "ACTIVE" : "INACTIVE")); | 752 | (p->layout_size ? "ACTIVE" : "INACTIVE")); |
753 | 753 | ||
754 | dev_set_drvdata(&op->dev, p); | 754 | dev_set_drvdata(&op->dev, p); |
diff --git a/arch/sparc/kernel/of_device_32.c b/arch/sparc/kernel/of_device_32.c index e4abe9b8f97a..ab133e2753ab 100644 --- a/arch/sparc/kernel/of_device_32.c +++ b/arch/sparc/kernel/of_device_32.c | |||
@@ -324,8 +324,8 @@ static void __init build_device_resources(struct platform_device *op, | |||
324 | memset(r, 0, sizeof(*r)); | 324 | memset(r, 0, sizeof(*r)); |
325 | 325 | ||
326 | if (of_resource_verbose) | 326 | if (of_resource_verbose) |
327 | printk("%s reg[%d] -> %llx\n", | 327 | printk("%pOF reg[%d] -> %llx\n", |
328 | op->dev.of_node->full_name, index, | 328 | op->dev.of_node, index, |
329 | result); | 329 | result); |
330 | 330 | ||
331 | if (result != OF_BAD_ADDR) { | 331 | if (result != OF_BAD_ADDR) { |
@@ -386,8 +386,7 @@ static struct platform_device * __init scan_one_device(struct device_node *dp, | |||
386 | op->dev.dma_mask = &op->dev.coherent_dma_mask; | 386 | op->dev.dma_mask = &op->dev.coherent_dma_mask; |
387 | 387 | ||
388 | if (of_device_register(op)) { | 388 | if (of_device_register(op)) { |
389 | printk("%s: Could not register of device.\n", | 389 | printk("%pOF: Could not register of device.\n", dp); |
390 | dp->full_name); | ||
391 | kfree(op); | 390 | kfree(op); |
392 | op = NULL; | 391 | op = NULL; |
393 | } | 392 | } |
diff --git a/arch/sparc/kernel/of_device_64.c b/arch/sparc/kernel/of_device_64.c index 6df6086968c6..2353cb7bc40f 100644 --- a/arch/sparc/kernel/of_device_64.c +++ b/arch/sparc/kernel/of_device_64.c | |||
@@ -341,9 +341,9 @@ static void __init build_device_resources(struct platform_device *op, | |||
341 | 341 | ||
342 | /* Prevent overrunning the op->resources[] array. */ | 342 | /* Prevent overrunning the op->resources[] array. */ |
343 | if (num_reg > PROMREG_MAX) { | 343 | if (num_reg > PROMREG_MAX) { |
344 | printk(KERN_WARNING "%s: Too many regs (%d), " | 344 | printk(KERN_WARNING "%pOF: Too many regs (%d), " |
345 | "limiting to %d.\n", | 345 | "limiting to %d.\n", |
346 | op->dev.of_node->full_name, num_reg, PROMREG_MAX); | 346 | op->dev.of_node, num_reg, PROMREG_MAX); |
347 | num_reg = PROMREG_MAX; | 347 | num_reg = PROMREG_MAX; |
348 | } | 348 | } |
349 | 349 | ||
@@ -401,8 +401,8 @@ static void __init build_device_resources(struct platform_device *op, | |||
401 | memset(r, 0, sizeof(*r)); | 401 | memset(r, 0, sizeof(*r)); |
402 | 402 | ||
403 | if (of_resource_verbose) | 403 | if (of_resource_verbose) |
404 | printk("%s reg[%d] -> %llx\n", | 404 | printk("%pOF reg[%d] -> %llx\n", |
405 | op->dev.of_node->full_name, index, | 405 | op->dev.of_node, index, |
406 | result); | 406 | result); |
407 | 407 | ||
408 | if (result != OF_BAD_ADDR) { | 408 | if (result != OF_BAD_ADDR) { |
@@ -548,8 +548,8 @@ static unsigned int __init build_one_device_irq(struct platform_device *op, | |||
548 | dp->irq_trans->data); | 548 | dp->irq_trans->data); |
549 | 549 | ||
550 | if (of_irq_verbose) | 550 | if (of_irq_verbose) |
551 | printk("%s: direct translate %x --> %x\n", | 551 | printk("%pOF: direct translate %x --> %x\n", |
552 | dp->full_name, orig_irq, irq); | 552 | dp, orig_irq, irq); |
553 | 553 | ||
554 | goto out; | 554 | goto out; |
555 | } | 555 | } |
@@ -579,10 +579,9 @@ static unsigned int __init build_one_device_irq(struct platform_device *op, | |||
579 | &irq); | 579 | &irq); |
580 | 580 | ||
581 | if (of_irq_verbose) | 581 | if (of_irq_verbose) |
582 | printk("%s: Apply [%s:%x] imap --> [%s:%x]\n", | 582 | printk("%pOF: Apply [%pOF:%x] imap --> [%pOF:%x]\n", |
583 | op->dev.of_node->full_name, | 583 | op->dev.of_node, |
584 | pp->full_name, this_orig_irq, | 584 | pp, this_orig_irq, iret, irq); |
585 | of_node_full_name(iret), irq); | ||
586 | 585 | ||
587 | if (!iret) | 586 | if (!iret) |
588 | break; | 587 | break; |
@@ -597,10 +596,10 @@ static unsigned int __init build_one_device_irq(struct platform_device *op, | |||
597 | 596 | ||
598 | irq = pci_irq_swizzle(dp, pp, irq); | 597 | irq = pci_irq_swizzle(dp, pp, irq); |
599 | if (of_irq_verbose) | 598 | if (of_irq_verbose) |
600 | printk("%s: PCI swizzle [%s] " | 599 | printk("%pOF: PCI swizzle [%pOF] " |
601 | "%x --> %x\n", | 600 | "%x --> %x\n", |
602 | op->dev.of_node->full_name, | 601 | op->dev.of_node, |
603 | pp->full_name, this_orig_irq, | 602 | pp, this_orig_irq, |
604 | irq); | 603 | irq); |
605 | 604 | ||
606 | } | 605 | } |
@@ -619,8 +618,8 @@ static unsigned int __init build_one_device_irq(struct platform_device *op, | |||
619 | irq = ip->irq_trans->irq_build(op->dev.of_node, irq, | 618 | irq = ip->irq_trans->irq_build(op->dev.of_node, irq, |
620 | ip->irq_trans->data); | 619 | ip->irq_trans->data); |
621 | if (of_irq_verbose) | 620 | if (of_irq_verbose) |
622 | printk("%s: Apply IRQ trans [%s] %x --> %x\n", | 621 | printk("%pOF: Apply IRQ trans [%pOF] %x --> %x\n", |
623 | op->dev.of_node->full_name, ip->full_name, orig_irq, irq); | 622 | op->dev.of_node, ip, orig_irq, irq); |
624 | 623 | ||
625 | out: | 624 | out: |
626 | nid = of_node_to_nid(dp); | 625 | nid = of_node_to_nid(dp); |
@@ -656,9 +655,9 @@ static struct platform_device * __init scan_one_device(struct device_node *dp, | |||
656 | 655 | ||
657 | /* Prevent overrunning the op->irqs[] array. */ | 656 | /* Prevent overrunning the op->irqs[] array. */ |
658 | if (op->archdata.num_irqs > PROMINTR_MAX) { | 657 | if (op->archdata.num_irqs > PROMINTR_MAX) { |
659 | printk(KERN_WARNING "%s: Too many irqs (%d), " | 658 | printk(KERN_WARNING "%pOF: Too many irqs (%d), " |
660 | "limiting to %d.\n", | 659 | "limiting to %d.\n", |
661 | dp->full_name, op->archdata.num_irqs, PROMINTR_MAX); | 660 | dp, op->archdata.num_irqs, PROMINTR_MAX); |
662 | op->archdata.num_irqs = PROMINTR_MAX; | 661 | op->archdata.num_irqs = PROMINTR_MAX; |
663 | } | 662 | } |
664 | memcpy(op->archdata.irqs, irq, op->archdata.num_irqs * 4); | 663 | memcpy(op->archdata.irqs, irq, op->archdata.num_irqs * 4); |
@@ -680,8 +679,7 @@ static struct platform_device * __init scan_one_device(struct device_node *dp, | |||
680 | op->dev.dma_mask = &op->dev.coherent_dma_mask; | 679 | op->dev.dma_mask = &op->dev.coherent_dma_mask; |
681 | 680 | ||
682 | if (of_device_register(op)) { | 681 | if (of_device_register(op)) { |
683 | printk("%s: Could not register of device.\n", | 682 | printk("%pOF: Could not register of device.\n", dp); |
684 | dp->full_name); | ||
685 | kfree(op); | 683 | kfree(op); |
686 | op = NULL; | 684 | op = NULL; |
687 | } | 685 | } |
diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c index 17ea16a1337c..45ba2757a1b9 100644 --- a/arch/sparc/kernel/pci.c +++ b/arch/sparc/kernel/pci.c | |||
@@ -431,13 +431,13 @@ static void of_scan_pci_bridge(struct pci_pbm_info *pbm, | |||
431 | u64 size; | 431 | u64 size; |
432 | 432 | ||
433 | if (ofpci_verbose) | 433 | if (ofpci_verbose) |
434 | pci_info(dev, "of_scan_pci_bridge(%s)\n", node->full_name); | 434 | pci_info(dev, "of_scan_pci_bridge(%pOF)\n", node); |
435 | 435 | ||
436 | /* parse bus-range property */ | 436 | /* parse bus-range property */ |
437 | busrange = of_get_property(node, "bus-range", &len); | 437 | busrange = of_get_property(node, "bus-range", &len); |
438 | if (busrange == NULL || len != 8) { | 438 | if (busrange == NULL || len != 8) { |
439 | pci_info(dev, "Can't get bus-range for PCI-PCI bridge %s\n", | 439 | pci_info(dev, "Can't get bus-range for PCI-PCI bridge %pOF\n", |
440 | node->full_name); | 440 | node); |
441 | return; | 441 | return; |
442 | } | 442 | } |
443 | 443 | ||
@@ -455,8 +455,8 @@ static void of_scan_pci_bridge(struct pci_pbm_info *pbm, | |||
455 | 455 | ||
456 | bus = pci_add_new_bus(dev->bus, dev, busrange[0]); | 456 | bus = pci_add_new_bus(dev->bus, dev, busrange[0]); |
457 | if (!bus) { | 457 | if (!bus) { |
458 | pci_err(dev, "Failed to create pci bus for %s\n", | 458 | pci_err(dev, "Failed to create pci bus for %pOF\n", |
459 | node->full_name); | 459 | node); |
460 | return; | 460 | return; |
461 | } | 461 | } |
462 | 462 | ||
@@ -512,13 +512,13 @@ static void of_scan_pci_bridge(struct pci_pbm_info *pbm, | |||
512 | res = bus->resource[0]; | 512 | res = bus->resource[0]; |
513 | if (res->flags) { | 513 | if (res->flags) { |
514 | pci_err(dev, "ignoring extra I/O range" | 514 | pci_err(dev, "ignoring extra I/O range" |
515 | " for bridge %s\n", node->full_name); | 515 | " for bridge %pOF\n", node); |
516 | continue; | 516 | continue; |
517 | } | 517 | } |
518 | } else { | 518 | } else { |
519 | if (i >= PCI_NUM_RESOURCES - PCI_BRIDGE_RESOURCES) { | 519 | if (i >= PCI_NUM_RESOURCES - PCI_BRIDGE_RESOURCES) { |
520 | pci_err(dev, "too many memory ranges" | 520 | pci_err(dev, "too many memory ranges" |
521 | " for bridge %s\n", node->full_name); | 521 | " for bridge %pOF\n", node); |
522 | continue; | 522 | continue; |
523 | } | 523 | } |
524 | res = bus->resource[i]; | 524 | res = bus->resource[i]; |
@@ -554,14 +554,14 @@ static void pci_of_scan_bus(struct pci_pbm_info *pbm, | |||
554 | struct pci_dev *dev; | 554 | struct pci_dev *dev; |
555 | 555 | ||
556 | if (ofpci_verbose) | 556 | if (ofpci_verbose) |
557 | pci_info(bus, "scan_bus[%s] bus no %d\n", | 557 | pci_info(bus, "scan_bus[%pOF] bus no %d\n", |
558 | node->full_name, bus->number); | 558 | node, bus->number); |
559 | 559 | ||
560 | child = NULL; | 560 | child = NULL; |
561 | prev_devfn = -1; | 561 | prev_devfn = -1; |
562 | while ((child = of_get_next_child(node, child)) != NULL) { | 562 | while ((child = of_get_next_child(node, child)) != NULL) { |
563 | if (ofpci_verbose) | 563 | if (ofpci_verbose) |
564 | pci_info(bus, " * %s\n", child->full_name); | 564 | pci_info(bus, " * %pOF\n", child); |
565 | reg = of_get_property(child, "reg", ®len); | 565 | reg = of_get_property(child, "reg", ®len); |
566 | if (reg == NULL || reglen < 20) | 566 | if (reg == NULL || reglen < 20) |
567 | continue; | 567 | continue; |
@@ -598,7 +598,7 @@ show_pciobppath_attr(struct device * dev, struct device_attribute * attr, char * | |||
598 | pdev = to_pci_dev(dev); | 598 | pdev = to_pci_dev(dev); |
599 | dp = pdev->dev.of_node; | 599 | dp = pdev->dev.of_node; |
600 | 600 | ||
601 | return snprintf (buf, PAGE_SIZE, "%s\n", dp->full_name); | 601 | return snprintf (buf, PAGE_SIZE, "%pOF\n", dp); |
602 | } | 602 | } |
603 | 603 | ||
604 | static DEVICE_ATTR(obppath, S_IRUSR | S_IRGRP | S_IROTH, show_pciobppath_attr, NULL); | 604 | static DEVICE_ATTR(obppath, S_IRUSR | S_IRGRP | S_IROTH, show_pciobppath_attr, NULL); |
@@ -698,7 +698,7 @@ struct pci_bus *pci_scan_one_pbm(struct pci_pbm_info *pbm, | |||
698 | struct device_node *node = pbm->op->dev.of_node; | 698 | struct device_node *node = pbm->op->dev.of_node; |
699 | struct pci_bus *bus; | 699 | struct pci_bus *bus; |
700 | 700 | ||
701 | printk("PCI: Scanning PBM %s\n", node->full_name); | 701 | printk("PCI: Scanning PBM %pOF\n", node); |
702 | 702 | ||
703 | pci_add_resource_offset(&resources, &pbm->io_space, | 703 | pci_add_resource_offset(&resources, &pbm->io_space, |
704 | pbm->io_offset); | 704 | pbm->io_offset); |
@@ -714,8 +714,7 @@ struct pci_bus *pci_scan_one_pbm(struct pci_pbm_info *pbm, | |||
714 | bus = pci_create_root_bus(parent, pbm->pci_first_busno, pbm->pci_ops, | 714 | bus = pci_create_root_bus(parent, pbm->pci_first_busno, pbm->pci_ops, |
715 | pbm, &resources); | 715 | pbm, &resources); |
716 | if (!bus) { | 716 | if (!bus) { |
717 | printk(KERN_ERR "Failed to create bus for %s\n", | 717 | printk(KERN_ERR "Failed to create bus for %pOF\n", node); |
718 | node->full_name); | ||
719 | pci_free_resource_list(&resources); | 718 | pci_free_resource_list(&resources); |
720 | return NULL; | 719 | return NULL; |
721 | } | 720 | } |
@@ -1111,8 +1110,8 @@ static void pci_bus_slot_names(struct device_node *node, struct pci_bus *bus) | |||
1111 | sp = prop->names; | 1110 | sp = prop->names; |
1112 | 1111 | ||
1113 | if (ofpci_verbose) | 1112 | if (ofpci_verbose) |
1114 | pci_info(bus, "Making slots for [%s] mask[0x%02x]\n", | 1113 | pci_info(bus, "Making slots for [%pOF] mask[0x%02x]\n", |
1115 | node->full_name, mask); | 1114 | node, mask); |
1116 | 1115 | ||
1117 | i = 0; | 1116 | i = 0; |
1118 | while (mask) { | 1117 | while (mask) { |
diff --git a/arch/sparc/kernel/prom_32.c b/arch/sparc/kernel/prom_32.c index d41e2a749c5d..daa84b2461d3 100644 --- a/arch/sparc/kernel/prom_32.c +++ b/arch/sparc/kernel/prom_32.c | |||
@@ -255,7 +255,7 @@ void __init of_console_init(void) | |||
255 | } | 255 | } |
256 | of_console_device = dp; | 256 | of_console_device = dp; |
257 | 257 | ||
258 | strcpy(of_console_path, dp->full_name); | 258 | sprintf(of_console_path, "%pOF", dp); |
259 | if (!strcmp(type, "serial")) { | 259 | if (!strcmp(type, "serial")) { |
260 | strcat(of_console_path, | 260 | strcat(of_console_path, |
261 | (skip ? ":b" : ":a")); | 261 | (skip ? ":b" : ":a")); |
@@ -295,7 +295,7 @@ void __init of_console_init(void) | |||
295 | of_console_device = dp; | 295 | of_console_device = dp; |
296 | 296 | ||
297 | if (prom_vers == PROM_V2) { | 297 | if (prom_vers == PROM_V2) { |
298 | strcpy(of_console_path, dp->full_name); | 298 | sprintf(of_console_path, "%pOF", dp); |
299 | switch (*romvec->pv_stdout) { | 299 | switch (*romvec->pv_stdout) { |
300 | case PROMDEV_TTYA: | 300 | case PROMDEV_TTYA: |
301 | strcat(of_console_path, ":a"); | 301 | strcat(of_console_path, ":a"); |
diff --git a/arch/sparc/kernel/sbus.c b/arch/sparc/kernel/sbus.c index c133dfc37c5c..41c5deb581b8 100644 --- a/arch/sparc/kernel/sbus.c +++ b/arch/sparc/kernel/sbus.c | |||
@@ -67,8 +67,8 @@ void sbus_set_sbus64(struct device *dev, int bursts) | |||
67 | 67 | ||
68 | regs = of_get_property(op->dev.of_node, "reg", NULL); | 68 | regs = of_get_property(op->dev.of_node, "reg", NULL); |
69 | if (!regs) { | 69 | if (!regs) { |
70 | printk(KERN_ERR "sbus_set_sbus64: Cannot find regs for %s\n", | 70 | printk(KERN_ERR "sbus_set_sbus64: Cannot find regs for %pOF\n", |
71 | op->dev.of_node->full_name); | 71 | op->dev.of_node); |
72 | return; | 72 | return; |
73 | } | 73 | } |
74 | slot = regs->which_io; | 74 | slot = regs->which_io; |
diff --git a/arch/sparc/kernel/sun4d_irq.c b/arch/sparc/kernel/sun4d_irq.c index d869d409fce6..6d266d7dd2b6 100644 --- a/arch/sparc/kernel/sun4d_irq.c +++ b/arch/sparc/kernel/sun4d_irq.c | |||
@@ -361,15 +361,15 @@ static unsigned int sun4d_build_device_irq(struct platform_device *op, | |||
361 | * lacks a "board#" property, something is very wrong. | 361 | * lacks a "board#" property, something is very wrong. |
362 | */ | 362 | */ |
363 | if (!bus->parent || strcmp(bus->parent->name, bus_connection)) { | 363 | if (!bus->parent || strcmp(bus->parent->name, bus_connection)) { |
364 | printk(KERN_ERR "%s: Error, parent is not %s.\n", | 364 | printk(KERN_ERR "%pOF: Error, parent is not %s.\n", |
365 | bus->full_name, bus_connection); | 365 | bus, bus_connection); |
366 | goto err_out; | 366 | goto err_out; |
367 | } | 367 | } |
368 | board_parent = bus->parent; | 368 | board_parent = bus->parent; |
369 | board = of_getintprop_default(board_parent, "board#", -1); | 369 | board = of_getintprop_default(board_parent, "board#", -1); |
370 | if (board == -1) { | 370 | if (board == -1) { |
371 | printk(KERN_ERR "%s: Error, lacks board# property.\n", | 371 | printk(KERN_ERR "%pOF: Error, lacks board# property.\n", |
372 | board_parent->full_name); | 372 | board_parent); |
373 | goto err_out; | 373 | goto err_out; |
374 | } | 374 | } |
375 | 375 | ||
diff --git a/arch/sparc/kernel/time_64.c b/arch/sparc/kernel/time_64.c index 5f356dc8e178..68a80f9baea7 100644 --- a/arch/sparc/kernel/time_64.c +++ b/arch/sparc/kernel/time_64.c | |||
@@ -445,8 +445,8 @@ static int rtc_probe(struct platform_device *op) | |||
445 | { | 445 | { |
446 | struct resource *r; | 446 | struct resource *r; |
447 | 447 | ||
448 | printk(KERN_INFO "%s: RTC regs at 0x%llx\n", | 448 | printk(KERN_INFO "%pOF: RTC regs at 0x%llx\n", |
449 | op->dev.of_node->full_name, op->resource[0].start); | 449 | op->dev.of_node, op->resource[0].start); |
450 | 450 | ||
451 | /* The CMOS RTC driver only accepts IORESOURCE_IO, so cons | 451 | /* The CMOS RTC driver only accepts IORESOURCE_IO, so cons |
452 | * up a fake resource so that the probe works for all cases. | 452 | * up a fake resource so that the probe works for all cases. |
@@ -501,8 +501,8 @@ static struct platform_device rtc_bq4802_device = { | |||
501 | static int bq4802_probe(struct platform_device *op) | 501 | static int bq4802_probe(struct platform_device *op) |
502 | { | 502 | { |
503 | 503 | ||
504 | printk(KERN_INFO "%s: BQ4802 regs at 0x%llx\n", | 504 | printk(KERN_INFO "%pOF: BQ4802 regs at 0x%llx\n", |
505 | op->dev.of_node->full_name, op->resource[0].start); | 505 | op->dev.of_node, op->resource[0].start); |
506 | 506 | ||
507 | rtc_bq4802_device.resource = &op->resource[0]; | 507 | rtc_bq4802_device.resource = &op->resource[0]; |
508 | return platform_device_register(&rtc_bq4802_device); | 508 | return platform_device_register(&rtc_bq4802_device); |
@@ -565,8 +565,8 @@ static int mostek_probe(struct platform_device *op) | |||
565 | strcmp(dp->parent->parent->name, "central") != 0) | 565 | strcmp(dp->parent->parent->name, "central") != 0) |
566 | return -ENODEV; | 566 | return -ENODEV; |
567 | 567 | ||
568 | printk(KERN_INFO "%s: Mostek regs at 0x%llx\n", | 568 | printk(KERN_INFO "%pOF: Mostek regs at 0x%llx\n", |
569 | dp->full_name, op->resource[0].start); | 569 | dp, op->resource[0].start); |
570 | 570 | ||
571 | m48t59_rtc.resource = &op->resource[0]; | 571 | m48t59_rtc.resource = &op->resource[0]; |
572 | return platform_device_register(&m48t59_rtc); | 572 | return platform_device_register(&m48t59_rtc); |
diff --git a/arch/sparc/kernel/vio.c b/arch/sparc/kernel/vio.c index 32bae68e34c1..0b578d03797b 100644 --- a/arch/sparc/kernel/vio.c +++ b/arch/sparc/kernel/vio.c | |||
@@ -193,7 +193,7 @@ show_pciobppath_attr(struct device *dev, struct device_attribute *attr, | |||
193 | vdev = to_vio_dev(dev); | 193 | vdev = to_vio_dev(dev); |
194 | dp = vdev->dp; | 194 | dp = vdev->dp; |
195 | 195 | ||
196 | return snprintf (buf, PAGE_SIZE, "%s\n", dp->full_name); | 196 | return snprintf (buf, PAGE_SIZE, "%pOF\n", dp); |
197 | } | 197 | } |
198 | 198 | ||
199 | static DEVICE_ATTR(obppath, S_IRUSR | S_IRGRP | S_IROTH, | 199 | static DEVICE_ATTR(obppath, S_IRUSR | S_IRGRP | S_IROTH, |