diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-12-22 23:02:24 (GMT) |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-02-23 00:17:00 (GMT) |
commit | 7c9342b8dd1a32386fc32bffb9eedebbfe264763 (patch) | |
tree | 5e1e96a1f9bd0808ec3ded0a0cfbf6cf6917eff0 /drivers/pci | |
parent | 5eeec0ec931a01e85b3701ce121b7d8a1800ec60 (diff) | |
download | linux-fsl-qoriq-7c9342b8dd1a32386fc32bffb9eedebbfe264763.tar.xz |
PCI: don't dump resource when bus resource flags indicates unused
Don't print out resources without flags to avoid cluttering up the debug
output.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/setup-bus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 1bd41ac..52fbd42 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -610,7 +610,8 @@ static void pci_bus_dump_res(struct pci_bus *bus) for (i = 0; i < PCI_BUS_NUM_RESOURCES; i++) { struct resource *res = bus->resource[i]; - if (!res || !res->end) + + if (!res || !res->end || !res->flags) continue; dev_printk(KERN_DEBUG, &bus->dev, "resource %d %pR\n", i, res); |