]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/pci/pci-driver.c
Merge tag 'pci-v4.11-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaa...
[karo-tx-linux.git] / drivers / pci / pci-driver.c
index 3e0516ee9eabf9cdaae4264dccd7d5569ef96f40..afa72717a97937cdb5d222dbb292a993fdf5d436 100644 (file)
@@ -1430,6 +1430,11 @@ static int pci_uevent(struct device *dev, struct kobj_uevent_env *env)
        return 0;
 }
 
+static int pci_bus_num_vf(struct device *dev)
+{
+       return pci_num_vf(to_pci_dev(dev));
+}
+
 struct bus_type pci_bus_type = {
        .name           = "pci",
        .match          = pci_bus_match,
@@ -1441,6 +1446,7 @@ struct bus_type pci_bus_type = {
        .bus_groups     = pci_bus_groups,
        .drv_groups     = pci_drv_groups,
        .pm             = PCI_PM_OPS_PTR,
+       .num_vf         = pci_bus_num_vf,
 };
 EXPORT_SYMBOL(pci_bus_type);