Browse Source

qcacmn: Use 0 as pci_id for kernel version 4.18 and beyond

From kernel version 4.18 onward, the API to fetch pci_id
is deprecated.Assign "0" to pci_id for such case.

Change-Id: Ifb370999402ddc0889d982e251a7f8dea877b17d
Debasis Das 5 years ago
parent
commit
a4ea8ba2ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hif/src/pcie/if_pci.c

+ 1 - 1
hif/src/pcie/if_pci.c

@@ -163,7 +163,7 @@ static inline int hif_get_pci_slot(struct hif_softc *scn)
 		pcierp_node = mhi_node->parent;
 		pcie_node = pcierp_node->parent;
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0))
-		pci_id = pci_bus_find_domain_nr(NULL, scn->qdf_dev->dev);
+		pci_id = 0;
 #else
 		pci_id = of_get_pci_domain_nr(pcie_node);
 #endif