mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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:
parent
fa23397925
commit
46068e86c3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347190
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue