X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ls-caps-vendor.c;h=62ee586dcd6de978162cb8e5c7b813fe7fe4df96;hb=0e48f9b7af7c4e9a76092db62a1a4d777f59c170;hp=829d59f5b66bb8a5670221516c3109efb265c548;hpb=6182921907ef3cc31be3394eb468b24bcd3955a8;p=pciutils.git 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; }