Commit 4ccac58e authored by Helge Deller's avatar Helge Deller

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: default avatarHelge Deller <deller@gmx.de>
parent a5ff2130
...@@ -61,8 +61,6 @@ static int __init hppb_probe(struct parisc_device *dev) ...@@ -61,8 +61,6 @@ static int __init hppb_probe(struct parisc_device *dev)
} }
card = card->next; card = card->next;
} }
printk(KERN_INFO "Found GeckoBoa at 0x%llx\n",
(unsigned long long) dev->hpa.start);
card->hpa = dev->hpa.start; card->hpa = dev->hpa.start;
card->mmio_region.name = "HP-PB Bus"; card->mmio_region.name = "HP-PB Bus";
...@@ -72,10 +70,11 @@ static int __init hppb_probe(struct parisc_device *dev) ...@@ -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; card->mmio_region.end = gsc_readl(dev->hpa.start + IO_IO_HIGH) - 1;
status = ccio_request_resource(dev, &card->mmio_region); status = ccio_request_resource(dev, &card->mmio_region);
if(status < 0) {
printk(KERN_ERR "%s: failed to claim HP-PB bus space (%pR)\n", pr_info("Found GeckoBoa at %pap, bus space %pR,%s claimed.\n",
__FILE__, &card->mmio_region); &dev->hpa.start,
} &card->mmio_region,
(status < 0) ? " not":"" );
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment