Skip to content

Commit c97e590

Browse files
committed
Merge branch 'pci/controller/cadence'
- Drop unused struct cdns_plat_pcie.is_rc member (Li Chen) * pci/controller/cadence: PCI: cadence: Drop unused member from struct cdns_plat_pcie
2 parents 86b812d + e111ac7 commit c97e590

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/pci/controller/cadence/pcie-cadence-plat.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@
1717
/**
1818
* struct cdns_plat_pcie - private data for this PCIe platform driver
1919
* @pcie: Cadence PCIe controller
20-
* @is_rc: Set to 1 indicates the PCIe controller mode is Root Complex,
21-
* if 0 it is in Endpoint mode.
2220
*/
2321
struct cdns_plat_pcie {
2422
struct cdns_pcie *pcie;
25-
bool is_rc;
2623
};
2724

2825
struct cdns_plat_pcie_of_data {
@@ -76,7 +73,6 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
7673
rc->pcie.dev = dev;
7774
rc->pcie.ops = &cdns_plat_ops;
7875
cdns_plat_pcie->pcie = &rc->pcie;
79-
cdns_plat_pcie->is_rc = is_rc;
8076

8177
ret = cdns_pcie_init_phy(dev, cdns_plat_pcie->pcie);
8278
if (ret) {
@@ -104,7 +100,6 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
104100
ep->pcie.dev = dev;
105101
ep->pcie.ops = &cdns_plat_ops;
106102
cdns_plat_pcie->pcie = &ep->pcie;
107-
cdns_plat_pcie->is_rc = is_rc;
108103

109104
ret = cdns_pcie_init_phy(dev, cdns_plat_pcie->pcie);
110105
if (ret) {

0 commit comments

Comments
 (0)