File tree Expand file tree Collapse file tree
drivers/pci/controller/cadence Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 */
2321struct cdns_plat_pcie {
2422 struct cdns_pcie * pcie ;
25- bool is_rc ;
2623};
2724
2825struct 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 ) {
You can’t perform that action at this time.
0 commit comments