projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5eeec0e
)
PCI: don't dump resource when bus resource flags indicates unused
author
Yinghai Lu
<yinghai@kernel.org>
Tue, 22 Dec 2009 23:02:24 +0000
(15:02 -0800)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Tue, 23 Feb 2010 00:17:00 +0000
(16:17 -0800)
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>
drivers/pci/setup-bus.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/setup-bus.c
b/drivers/pci/setup-bus.c
index 1bd41ac2abd9c4bfb5be505079d613c39b1a1d24..52fbd426a1c7cdc1d23dfbfebfd2f2a17dfa3368 100644
(file)
--- 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);