aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-11-12 16:38:00 -0500
committerHelge Deller <deller@gmx.de>2013-02-20 16:47:24 -0500
commit3fad9b8d597f3a901fde947fc531886f685652c7 (patch)
treec5c5f91e5e8c0cd837de893b71f209c589aef55c
parentfbd48433e79a6439264448c8e85c4816f5b32694 (diff)
drivers/parisc: Use printf extension %pR for struct resource
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--drivers/parisc/dino.c13
-rw-r--r--drivers/parisc/hppb.c6
2 files changed, 7 insertions, 12 deletions
diff --git a/drivers/parisc/dino.c b/drivers/parisc/dino.c
index 8e4e86b78428..9eae9834bcc7 100644
--- a/drivers/parisc/dino.c
+++ b/drivers/parisc/dino.c
@@ -580,15 +580,13 @@ dino_fixup_bus(struct pci_bus *bus)
580 580
581 } 581 }
582 582
583 DBG("DEBUG %s assigning %d [0x%lx,0x%lx]\n", 583 DBG("DEBUG %s assigning %d [%pR]\n",
584 dev_name(&bus->self->dev), i, 584 dev_name(&bus->self->dev), i,
585 bus->self->resource[i].start, 585 &bus->self->resource[i]);
586 bus->self->resource[i].end);
587 WARN_ON(pci_assign_resource(bus->self, i)); 586 WARN_ON(pci_assign_resource(bus->self, i));
588 DBG("DEBUG %s after assign %d [0x%lx,0x%lx]\n", 587 DBG("DEBUG %s after assign %d [%pR]\n",
589 dev_name(&bus->self->dev), i, 588 dev_name(&bus->self->dev), i,
590 bus->self->resource[i].start, 589 &bus->self->resource[i]);
591 bus->self->resource[i].end);
592 } 590 }
593 } 591 }
594 592
@@ -772,8 +770,7 @@ dino_bridge_init(struct dino_device *dino_dev, const char *name)
772 result = ccio_request_resource(dino_dev->hba.dev, &res[i]); 770 result = ccio_request_resource(dino_dev->hba.dev, &res[i]);
773 if (result < 0) { 771 if (result < 0) {
774 printk(KERN_ERR "%s: failed to claim PCI Bus address " 772 printk(KERN_ERR "%s: failed to claim PCI Bus address "
775 "space %d (0x%lx-0x%lx)!\n", name, i, 773 "space %d (%pR)!\n", name, i, &res[i]);
776 (unsigned long)res[i].start, (unsigned long)res[i].end);
777 return result; 774 return result;
778 } 775 }
779 } 776 }
diff --git a/drivers/parisc/hppb.c b/drivers/parisc/hppb.c
index 815db175d427..898208e4f302 100644
--- a/drivers/parisc/hppb.c
+++ b/drivers/parisc/hppb.c
@@ -74,10 +74,8 @@ static int hppb_probe(struct parisc_device *dev)
74 74
75 status = ccio_request_resource(dev, &card->mmio_region); 75 status = ccio_request_resource(dev, &card->mmio_region);
76 if(status < 0) { 76 if(status < 0) {
77 printk(KERN_ERR "%s: failed to claim HP-PB " 77 printk(KERN_ERR "%s: failed to claim HP-PB bus space (%pR)\n",
78 "bus space (0x%08llx, 0x%08llx)\n", 78 __FILE__, &card->mmio_region);
79 __FILE__, (unsigned long long) card->mmio_region.start,
80 (unsigned long long) card->mmio_region.end);
81 } 79 }
82 80
83 return 0; 81 return 0;