aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ide/pmac.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/ide/pmac.c b/drivers/ide/pmac.c
index 0c5d3a99468e..c5b902b86b44 100644
--- a/drivers/ide/pmac.c
+++ b/drivers/ide/pmac.c
@@ -1145,8 +1145,8 @@ static int pmac_ide_macio_attach(struct macio_dev *mdev,
1145 return -ENOMEM; 1145 return -ENOMEM;
1146 1146
1147 if (macio_resource_count(mdev) == 0) { 1147 if (macio_resource_count(mdev) == 0) {
1148 printk(KERN_WARNING "ide-pmac: no address for %s\n", 1148 printk(KERN_WARNING "ide-pmac: no address for %pOF\n",
1149 mdev->ofdev.dev.of_node->full_name); 1149 mdev->ofdev.dev.of_node);
1150 rc = -ENXIO; 1150 rc = -ENXIO;
1151 goto out_free_pmif; 1151 goto out_free_pmif;
1152 } 1152 }
@@ -1154,7 +1154,7 @@ static int pmac_ide_macio_attach(struct macio_dev *mdev,
1154 /* Request memory resource for IO ports */ 1154 /* Request memory resource for IO ports */
1155 if (macio_request_resource(mdev, 0, "ide-pmac (ports)")) { 1155 if (macio_request_resource(mdev, 0, "ide-pmac (ports)")) {
1156 printk(KERN_ERR "ide-pmac: can't request MMIO resource for " 1156 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);
1158 rc = -EBUSY; 1158 rc = -EBUSY;
1159 goto out_free_pmif; 1159 goto out_free_pmif;
1160 } 1160 }
@@ -1165,8 +1165,8 @@ static int pmac_ide_macio_attach(struct macio_dev *mdev,
1165 * where that happens though... 1165 * where that happens though...
1166 */ 1166 */
1167 if (macio_irq_count(mdev) == 0) { 1167 if (macio_irq_count(mdev) == 0) {
1168 printk(KERN_WARNING "ide-pmac: no intrs for device %s, using " 1168 printk(KERN_WARNING "ide-pmac: no intrs for device %pOF, using "
1169 "13\n", mdev->ofdev.dev.of_node->full_name); 1169 "13\n", mdev->ofdev.dev.of_node);
1170 irq = irq_create_mapping(NULL, 13); 1170 irq = irq_create_mapping(NULL, 13);
1171 } else 1171 } else
1172 irq = macio_irq(mdev, 0); 1172 irq = macio_irq(mdev, 0);
@@ -1183,8 +1183,8 @@ static int pmac_ide_macio_attach(struct macio_dev *mdev,
1183 if (macio_resource_count(mdev) >= 2) { 1183 if (macio_resource_count(mdev) >= 2) {
1184 if (macio_request_resource(mdev, 1, "ide-pmac (dma)")) 1184 if (macio_request_resource(mdev, 1, "ide-pmac (dma)"))
1185 printk(KERN_WARNING "ide-pmac: can't request DMA " 1185 printk(KERN_WARNING "ide-pmac: can't request DMA "
1186 "resource for %s!\n", 1186 "resource for %pOF!\n",
1187 mdev->ofdev.dev.of_node->full_name); 1187 mdev->ofdev.dev.of_node);
1188 else 1188 else
1189 pmif->dma_regs = ioremap(macio_resource_start(mdev, 1), 0x1000); 1189 pmif->dma_regs = ioremap(macio_resource_start(mdev, 1), 0x1000);
1190 } else 1190 } else
@@ -1274,7 +1274,7 @@ static int pmac_ide_pci_attach(struct pci_dev *pdev,
1274 1274
1275 if (pci_enable_device(pdev)) { 1275 if (pci_enable_device(pdev)) {
1276 printk(KERN_WARNING "ide-pmac: Can't enable PCI device for " 1276 printk(KERN_WARNING "ide-pmac: Can't enable PCI device for "
1277 "%s\n", np->full_name); 1277 "%pOF\n", np);
1278 rc = -ENXIO; 1278 rc = -ENXIO;
1279 goto out_free_pmif; 1279 goto out_free_pmif;
1280 } 1280 }
@@ -1282,7 +1282,7 @@ static int pmac_ide_pci_attach(struct pci_dev *pdev,
1282 1282
1283 if (pci_request_regions(pdev, "Kauai ATA")) { 1283 if (pci_request_regions(pdev, "Kauai ATA")) {
1284 printk(KERN_ERR "ide-pmac: Cannot obtain PCI resources for " 1284 printk(KERN_ERR "ide-pmac: Cannot obtain PCI resources for "
1285 "%s\n", np->full_name); 1285 "%pOF\n", np);
1286 rc = -ENXIO; 1286 rc = -ENXIO;
1287 goto out_free_pmif; 1287 goto out_free_pmif;
1288 } 1288 }