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
6e5bade211
commit
97403087df
@ -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…
x
Reference in New Issue
Block a user