diff options
Diffstat (limited to 'sys/dev/vge/if_vge.c')
-rw-r--r-- | sys/dev/vge/if_vge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vge/if_vge.c b/sys/dev/vge/if_vge.c index 20a0df4..4549bb0 100644 --- a/sys/dev/vge/if_vge.c +++ b/sys/dev/vge/if_vge.c @@ -1004,12 +1004,12 @@ vge_attach(device_t dev) goto fail; } - if (pci_find_extcap(dev, PCIY_EXPRESS, &cap) == 0) { + if (pci_find_cap(dev, PCIY_EXPRESS, &cap) == 0) { sc->vge_flags |= VGE_FLAG_PCIE; sc->vge_expcap = cap; } else sc->vge_flags |= VGE_FLAG_JUMBO; - if (pci_find_extcap(dev, PCIY_PMG, &cap) == 0) { + if (pci_find_cap(dev, PCIY_PMG, &cap) == 0) { sc->vge_flags |= VGE_FLAG_PMCAP; sc->vge_pmcap = cap; } |