summaryrefslogtreecommitdiff
path: root/drivers/parisc/hppb.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2019-09-05 16:35:12 +0200
committerHelge Deller <deller@gmx.de>2019-09-05 16:35:12 +0200
commit4ccac58e5665130c3f1bc9ef95ac1ad3194fb08d (patch)
treebb13726287b6ef79f6517f68d98dd5728d909f7c /drivers/parisc/hppb.c
parenta5ff2130a4d98d22377e5fdab87d713f4b17f4f2 (diff)
parisc: Avoid warning when loading hppb driver
ccio_request_resource() may fail to allocate regions for the hppb driver. Do not print a misleading warning in this case. This was noticed on a HP D350/2 machine. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/parisc/hppb.c')
-rw-r--r--drivers/parisc/hppb.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/parisc/hppb.c b/drivers/parisc/hppb.c
index 44e12c83cfa8..e60e68664654 100644
--- a/drivers/parisc/hppb.c
+++ b/drivers/parisc/hppb.c
@@ -61,8 +61,6 @@ static int __init hppb_probe(struct parisc_device *dev)
}
card = card->next;
}
- printk(KERN_INFO "Found GeckoBoa at 0x%llx\n",
- (unsigned long long) dev->hpa.start);
card->hpa = dev->hpa.start;
card->mmio_region.name = "HP-PB Bus";
@@ -72,10 +70,11 @@ static int __init hppb_probe(struct parisc_device *dev)
card->mmio_region.end = gsc_readl(dev->hpa.start + IO_IO_HIGH) - 1;
status = ccio_request_resource(dev, &card->mmio_region);
- if(status < 0) {
- printk(KERN_ERR "%s: failed to claim HP-PB bus space (%pR)\n",
- __FILE__, &card->mmio_region);
- }
+
+ pr_info("Found GeckoBoa at %pap, bus space %pR,%s claimed.\n",
+ &dev->hpa.start,
+ &card->mmio_region,
+ (status < 0) ? " not":"" );
return 0;
}