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
This commit is contained in:
Debasis Das
2020-06-25 20:36:30 +05:30
committed by nshrivas
parent ea81d9ac47
commit a4ea8ba2ec

View File

@@ -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