aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-region.c
diff options
context:
space:
mode:
authorNiklas Cassel <[email protected]>2017-12-14 14:01:45 +0100
committerLorenzo Pieralisi <[email protected]>2017-12-19 11:05:44 +0000
commit0c47cd7a9b6c9c36c08113e594e9ad017fb17865 (patch)
treecc2ea9f57c307359afbff21f465cbd36b9740b6e /drivers/fpga/fpga-region.c
parentad4a5becc689c3f32bbbc2b37eff89efe19dc2f9 (diff)
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 <[email protected]> [[email protected]: rewrote the commit log] Signed-off-by: Lorenzo Pieralisi <[email protected]> Suggested-by: Kishon Vijay Abraham I <[email protected]> Acked-by: Kishon Vijay Abraham I <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions