PCI: use pci_is_pcie() in pci core
Change for PCI core to use pci_is_pcie() instead of checking pci_dev->is_pcie. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:

committed by
Jesse Barnes

parent
7eb776c42e
commit
5f4d91a122
@@ -555,7 +555,7 @@ int pci_iov_init(struct pci_dev *dev)
|
||||
{
|
||||
int pos;
|
||||
|
||||
if (!dev->is_pcie)
|
||||
if (!pci_is_pcie(dev))
|
||||
return -ENODEV;
|
||||
|
||||
pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_SRIOV);
|
||||
|
Reference in New Issue
Block a user