Use PCIV_INVALID in pci_channel_offline() in the LinuxKPI.

Build tested drm-current-kmod prior to commit.

MFC after:		1 week
Submitted by:		slavash@
Sponsored by:		Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2019-05-06 16:22:45 +00:00
parent fa23397925
commit 46068e86c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347190

View file

@ -614,7 +614,7 @@ static inline int
pci_channel_offline(struct pci_dev *pdev)
{
return (pci_get_vendor(pdev->dev.bsddev) == 0xffff);
return (pci_get_vendor(pdev->dev.bsddev) == PCIV_INVALID);
}
static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn)