Skip to contentSkip to conversation

PCI: cadence: remove unused cdns_plat_pcie->is_rc

PATCH Li Chen 1 participant 1 message Sep 5, 2022 1 message not in the archive PCI

lore
Share & tools
lore

Li Chen

author
#1 lore raw
In reply to a message not in the archive

+ linux-pci

---- On Mon, 05 Sep 2022 05:37:03 +0200 Li Chen wrote ---

Quoted 46 lines

From: Li Chen [email protected]>

We already have cdns_plat_pcie_of_data->is_rc.

---
 drivers/pci/controller/cadence/pcie-cadence-plat.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/pci/controller/cadence/pcie-cadence-plat.c +0 -5
index bac0541317c1..e091fef9c919 100644
@@ -18,12 +18,9 @@
 /**
  * struct cdns_plat_pcie - private data for this PCIe platform driver
  * @pcie: Cadence PCIe controller
- * @is_rc: Set to 1 indicates the PCIe controller mode is Root Complex,
- *         if 0 it is in Endpoint mode.
  */
 struct cdns_plat_pcie {
     struct cdns_pcie        *pcie;
-    bool is_rc;
 };
 
 struct cdns_plat_pcie_of_data {
@@ -77,7 +74,6 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
         rc->pcie.dev = dev;
         rc->pcie.ops = &cdns_plat_ops;
         cdns_plat_pcie->pcie = &rc->pcie;
-        cdns_plat_pcie->is_rc = is_rc;
 
         ret = cdns_pcie_init_phy(dev, cdns_plat_pcie->pcie);
         if (ret) {
@@ -105,7 +101,6 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
         ep->pcie.dev = dev;
         ep->pcie.ops = &cdns_plat_ops;
         cdns_plat_pcie->pcie = &ep->pcie;
-        cdns_plat_pcie->is_rc = is_rc;
 
         ret = cdns_pcie_init_phy(dev, cdns_plat_pcie->pcie);
         if (ret) {
Signature · 1 line
2.37.2