Skip to content

Commit 859420e

Browse files
robherringmpe
authored andcommitted
ide: pmac: 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: "David S. Miller" <davem@davemloft.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: linux-ide@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent b0d6c9b commit 859420e

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎drivers/ide/pmac.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,16 +1145,16 @@ static int pmac_ide_macio_attach(struct macio_dev *mdev,
11451145
return -ENOMEM;
11461146

11471147
if (macio_resource_count(mdev) == 0) {
1148-
printk(KERN_WARNING "ide-pmac: no address for %s\n",
1149-
mdev->ofdev.dev.of_node->full_name);
1148+
printk(KERN_WARNING "ide-pmac: no address for %pOF\n",
1149+
mdev->ofdev.dev.of_node);
11501150
rc = -ENXIO;
11511151
goto out_free_pmif;
11521152
}
11531153

11541154
/* Request memory resource for IO ports */
11551155
if (macio_request_resource(mdev, 0, "ide-pmac (ports)")) {
11561156
printk(KERN_ERR "ide-pmac: can't request MMIO resource for "
1157-
"%s!\n", mdev->ofdev.dev.of_node->full_name);
1157+
"%pOF!\n", mdev->ofdev.dev.of_node);
11581158
rc = -EBUSY;
11591159
goto out_free_pmif;
11601160
}
@@ -1165,8 +1165,8 @@ static int pmac_ide_macio_attach(struct macio_dev *mdev,
11651165
* where that happens though...
11661166
*/
11671167
if (macio_irq_count(mdev) == 0) {
1168-
printk(KERN_WARNING "ide-pmac: no intrs for device %s, using "
1169-
"13\n", mdev->ofdev.dev.of_node->full_name);
1168+
printk(KERN_WARNING "ide-pmac: no intrs for device %pOF, using "
1169+
"13\n", mdev->ofdev.dev.of_node);
11701170
irq = irq_create_mapping(NULL, 13);
11711171
} else
11721172
irq = macio_irq(mdev, 0);
@@ -1183,8 +1183,8 @@ static int pmac_ide_macio_attach(struct macio_dev *mdev,
11831183
if (macio_resource_count(mdev) >= 2) {
11841184
if (macio_request_resource(mdev, 1, "ide-pmac (dma)"))
11851185
printk(KERN_WARNING "ide-pmac: can't request DMA "
1186-
"resource for %s!\n",
1187-
mdev->ofdev.dev.of_node->full_name);
1186+
"resource for %pOF!\n",
1187+
mdev->ofdev.dev.of_node);
11881188
else
11891189
pmif->dma_regs = ioremap(macio_resource_start(mdev, 1), 0x1000);
11901190
} else
@@ -1274,15 +1274,15 @@ static int pmac_ide_pci_attach(struct pci_dev *pdev,
12741274

12751275
if (pci_enable_device(pdev)) {
12761276
printk(KERN_WARNING "ide-pmac: Can't enable PCI device for "
1277-
"%s\n", np->full_name);
1277+
"%pOF\n", np);
12781278
rc = -ENXIO;
12791279
goto out_free_pmif;
12801280
}
12811281
pci_set_master(pdev);
12821282

12831283
if (pci_request_regions(pdev, "Kauai ATA")) {
12841284
printk(KERN_ERR "ide-pmac: Cannot obtain PCI resources for "
1285-
"%s\n", np->full_name);
1285+
"%pOF\n", np);
12861286
rc = -ENXIO;
12871287
goto out_free_pmif;
12881288
}

0 commit comments

Comments
 (0)