Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+5 -6
+5 -6
drivers/parisc/hppb.c
··· 61 61 } 62 62 card = card->next; 63 63 } 64 - printk(KERN_INFO "Found GeckoBoa at 0x%llx\n", 65 - (unsigned long long) dev->hpa.start); 66 64 67 65 card->hpa = dev->hpa.start; 68 66 card->mmio_region.name = "HP-PB Bus"; ··· 70 72 card->mmio_region.end = gsc_readl(dev->hpa.start + IO_IO_HIGH) - 1; 71 73 72 74 status = ccio_request_resource(dev, &card->mmio_region); 73 - if(status < 0) { 74 - printk(KERN_ERR "%s: failed to claim HP-PB bus space (%pR)\n", 75 - __FILE__, &card->mmio_region); 76 - } 75 + 76 + pr_info("Found GeckoBoa at %pap, bus space %pR,%s claimed.\n", 77 + &dev->hpa.start, 78 + &card->mmio_region, 79 + (status < 0) ? " not":"" ); 77 80 78 81 return 0; 79 82 }