Skip to content
Snippets Groups Projects
Commit 90334cf6 authored by Frans Schreuder's avatar Frans Schreuder
Browse files

Added pci_dev_put after pci_get_device

parent fd0ff80f
No related branches found
No related tags found
1 merge request!1Removed vmk180_serial_demo ip core, and use versal_network_device ip instead,...
......@@ -71,7 +71,7 @@ static int flxnet_pcie_init(void) {
while (pdev != NULL) {
pr_info("flxnet_pcie: found %s with index %d\n", pci_name(pdev), index);
rv = configure_pcie_device(pdev, index);
pci_dev_put(pdev);
if (rv < 0) {
pr_warn("flxnet_pcie: failed to configure %s\n", pci_name(pdev));
}
......@@ -274,4 +274,4 @@ MODULE_PARM_DESC(dev_base_addr, "Base offset of the FIFO AXI device");
MODULE_AUTHOR("Elena Zhivun <elena.zhivun@cern.ch>");
MODULE_DESCRIPTION("Driver on host PC for establishing virtual network over PCIe, registers with flxnet_dev");
MODULE_LICENSE("GPL");
\ No newline at end of file
MODULE_LICENSE("GPL");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment