From: Martin Mares Date: Wed, 19 Jul 2023 19:13:59 +0000 (+0200) Subject: Merge remote-tracking branch 'twilfredo/wilfred/fixup-doe-bits' X-Git-Tag: v3.11.0~94 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9d9aa7055bea757fbe88b8667b07ea2102849e82;hp=2e05a86bf0c9d3d383f93517581395a1d2f17b6f;p=pciutils.git Merge remote-tracking branch 'twilfredo/wilfred/fixup-doe-bits' --- diff --git a/ls-caps-vendor.c b/ls-caps-vendor.c index 829d59f..62ee586 100644 --- a/ls-caps-vendor.c +++ b/ls-caps-vendor.c @@ -64,11 +64,11 @@ show_vendor_caps_virtio(struct device *d, int where, int cap) static int do_show_vendor_caps(struct device *d, int where, int cap) { - switch (get_conf_word(d, PCI_VENDOR_ID)) + switch (d->dev->vendor_id) { case 0x1af4: /* Red Hat */ - if (get_conf_word(d, PCI_DEVICE_ID) >= 0x1000 && - get_conf_word(d, PCI_DEVICE_ID) <= 0x107f) + if (d->dev->device_id >= 0x1000 && + d->dev->device_id <= 0x107f) return show_vendor_caps_virtio(d, where, cap); break; }