aboutsummaryrefslogtreecommitdiffstats
path: root/lib/caps.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/caps.c')
-rw-r--r--lib/caps.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/caps.c b/lib/caps.c
index c3b9180..3c025a9 100644
--- a/lib/caps.c
+++ b/lib/caps.c
@@ -80,17 +80,16 @@ pci_scan_ext_caps(struct pci_dev *d)
while (where);
}
-unsigned int
+void
pci_scan_caps(struct pci_dev *d, unsigned int want_fields)
{
- if ((want_fields & PCI_FILL_EXT_CAPS) && !(d->known_fields & PCI_FILL_CAPS))
+ if (want_fields & PCI_FILL_EXT_CAPS)
want_fields |= PCI_FILL_CAPS;
- if (want_fields & PCI_FILL_CAPS)
+ if (want_fill(d, want_fields, PCI_FILL_CAPS))
pci_scan_trad_caps(d);
- if (want_fields & PCI_FILL_EXT_CAPS)
+ if (want_fill(d, want_fields, PCI_FILL_EXT_CAPS))
pci_scan_ext_caps(d);
- return want_fields;
}
void