File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
drivers/pci/controller/dwc Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -1061,7 +1061,6 @@ static int imx6_add_pcie_ep(struct imx6_pcie *imx6_pcie,
1061
1061
int ret ;
1062
1062
unsigned int pcie_dbi2_offset ;
1063
1063
struct dw_pcie_ep * ep ;
1064
- struct resource * res ;
1065
1064
struct dw_pcie * pci = imx6_pcie -> pci ;
1066
1065
struct dw_pcie_rp * pp = & pci -> pp ;
1067
1066
struct device * dev = pci -> dev ;
@@ -1080,14 +1079,8 @@ static int imx6_add_pcie_ep(struct imx6_pcie *imx6_pcie,
1080
1079
pcie_dbi2_offset = SZ_4K ;
1081
1080
break ;
1082
1081
}
1083
- pci -> dbi_base2 = pci -> dbi_base + pcie_dbi2_offset ;
1084
- res = platform_get_resource_byname (pdev , IORESOURCE_MEM , "addr_space" );
1085
- if (!res )
1086
- return - EINVAL ;
1087
1082
1088
- ep -> phys_base = res -> start ;
1089
- ep -> addr_size = resource_size (res );
1090
- ep -> page_size = SZ_64K ;
1083
+ pci -> dbi_base2 = pci -> dbi_base + pcie_dbi2_offset ;
1091
1084
1092
1085
ret = dw_pcie_ep_init (ep );
1093
1086
if (ret ) {
You can’t perform that action at this time.
0 commit comments