X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fcaps.c;h=cf1df5d581121a62978630ec864b75345199092c;hb=3b35571588efef33489d3bb6e4436dc7581596be;hp=3c025a98347debabe0867822f1735dbd86cca72f;hpb=83d1cbf1e8bd451008271e2761f6f5826678241b;p=pciutils.git diff --git a/lib/caps.c b/lib/caps.c index 3c025a9..cf1df5d 100644 --- a/lib/caps.c +++ b/lib/caps.c @@ -3,7 +3,9 @@ * * Copyright (c) 2008 Martin Mares * - * Can be freely distributed and used under the terms of the GNU GPL. + * Can be freely distributed and used under the terms of the GNU GPL v2+. + * + * SPDX-License-Identifier: GPL-2.0-or-later */ #include @@ -128,7 +130,7 @@ pci_find_cap_nr(struct pci_dev *d, unsigned int id, unsigned int type, unsigned int target = (cap_number ? *cap_number : 0); unsigned int index = 0; - pci_fill_info_v35(d, ((type == PCI_CAP_NORMAL) ? PCI_FILL_CAPS : PCI_FILL_EXT_CAPS)); + pci_fill_info_v38(d, ((type == PCI_CAP_NORMAL) ? PCI_FILL_CAPS : PCI_FILL_EXT_CAPS)); for (c=d->first_cap; c; c=c->next) {