Prechádzať zdrojové kódy

qcacmn: remove pci_set_drvdata

pci_set_drvdata stores a pointer in the pci driver device structure.
Since we do not use this pointer any more we do not need to set it.

Change-Id: I36452aaf2a4c218a3d3891626406e4693d968bba
CRs-Fixed: 1071958
Houston Hoffman 8 rokov pred
rodič
commit
a57184e5ef
1 zmenil súbory, kde vykonal 0 pridanie a 5 odobranie
  1. 0 5
      hif/src/pcie/if_pci.c

+ 0 - 5
hif/src/pcie/if_pci.c

@@ -2202,7 +2202,6 @@ void hif_disable_pci(struct hif_pci_softc *sc)
 		HIF_ERROR("%s: ol_sc = NULL", __func__);
 		return;
 	}
-	pci_set_drvdata(sc->pdev, NULL);
 	hif_pci_device_reset(sc);
 	pci_iounmap(sc->pdev, sc->mem);
 	sc->mem = NULL;
@@ -2559,7 +2558,6 @@ void hif_pci_disable_bus(struct hif_softc *scn)
 			athdiag_procfs_remove();
 			scn->athdiag_procfs_inited = false;
 		}
-		pci_set_drvdata(pdev, NULL);
 		pci_iounmap(pdev, mem);
 		scn->mem = NULL;
 		pci_release_region(pdev, BAR_NUM);
@@ -3624,9 +3622,6 @@ again:
 	}
 	ol_sc->mem_pa = sc->soc_pcie_bar0;
 
-	BUG_ON(pci_get_drvdata(sc->pdev) != NULL);
-	pci_set_drvdata(sc->pdev, sc);
-
 	hif_target_sync(ol_sc);
 
 	if (ADRASTEA_BU)