projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
582a686
)
PCI: implement num_vf bus type callback
author
Phil Sutter
<phil@nwl.cc>
Wed, 18 Jan 2017 13:04:38 +0000
(14:04 +0100)
committer
David S. Miller
<davem@davemloft.net>
Fri, 20 Jan 2017 16:43:16 +0000
(11:43 -0500)
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/pci/pci-driver.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/pci-driver.c
b/drivers/pci/pci-driver.c
index 1ccce1cd6aca45d183fb65841c8893cbe4fcb029..63d8e18fb6b143c512f92c4c0a1817bb884bcb04 100644
(file)
--- a/
drivers/pci/pci-driver.c
+++ b/
drivers/pci/pci-driver.c
@@
-1432,6
+1432,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,
@@
-1443,6
+1448,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);