diff options
author | Niklas Cassel <niklas.cassel@axis.com> | 2017-12-14 14:01:45 +0100 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2017-12-19 12:05:44 +0100 |
commit | 0c47cd7a9b6c9c36c08113e594e9ad017fb17865 (patch) | |
tree | cc2ea9f57c307359afbff21f465cbd36b9740b6e /drivers/ptp | |
parent | PCI: designware-ep: Fix find_first_zero_bit() usage (diff) | |
download | linux-0c47cd7a9b6c9c36c08113e594e9ad017fb17865.tar.xz linux-0c47cd7a9b6c9c36c08113e594e9ad017fb17865.zip |
PCI: endpoint: Populate func_no before calling pci_epc_add_epf()
func_no is a member of struct pci_epf.
Since struct pci_epf is used as an argument to pci_epc_add_epf() (to
bind an endpoint function to a controller), struct pci_epf.func_no
should be populated before calling pci_epc_add_epf().
Initialize the struct pci_epf.func_no member before calling
pci_epc_add_epf(), to fix the endpoint function binding to
an endpoint controller.
Fixes: d74679911610 ("PCI: endpoint: Introduce configfs entry for configuring EP functions")
Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
[lorenzo.pieralisi@arm.com: rewrote the commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Suggested-by: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/ptp')
0 files changed, 0 insertions, 0 deletions