aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHonghui Zhang <honghui.zhang@mediatek.com>2018-12-13 20:25:39 -0500
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2018-12-18 08:48:07 -0500
commit7b96dc91be5e86f94e950ffd947874839a8aee9d (patch)
tree710d602e2d494f48911930ca36af8b613e7251e0
parent0c0f2f93e708b960985cf7e908d982366fe75770 (diff)
PCI: mediatek: Remove un-used variant in struct mtk_pcie_port
The "lane" variant in struct mtk_pcie_port is not used, remove it. Signed-off-by: Honghui Zhang <honghui.zhang@mediatek.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
-rw-r--r--drivers/pci/controller/pcie-mediatek.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/pci/controller/pcie-mediatek.c b/drivers/pci/controller/pcie-mediatek.c
index d20cf461ba00..55e471c18e8d 100644
--- a/drivers/pci/controller/pcie-mediatek.c
+++ b/drivers/pci/controller/pcie-mediatek.c
@@ -161,7 +161,6 @@ struct mtk_pcie_soc {
161 * @obff_ck: pointer to OBFF functional block operating clock 161 * @obff_ck: pointer to OBFF functional block operating clock
162 * @pipe_ck: pointer to LTSSM and PHY/MAC layer operating clock 162 * @pipe_ck: pointer to LTSSM and PHY/MAC layer operating clock
163 * @phy: pointer to PHY control block 163 * @phy: pointer to PHY control block
164 * @lane: lane count
165 * @slot: port slot 164 * @slot: port slot
166 * @irq: GIC irq 165 * @irq: GIC irq
167 * @irq_domain: legacy INTx IRQ domain 166 * @irq_domain: legacy INTx IRQ domain
@@ -182,7 +181,6 @@ struct mtk_pcie_port {
182 struct clk *obff_ck; 181 struct clk *obff_ck;
183 struct clk *pipe_ck; 182 struct clk *pipe_ck;
184 struct phy *phy; 183 struct phy *phy;
185 u32 lane;
186 u32 slot; 184 u32 slot;
187 int irq; 185 int irq;
188 struct irq_domain *irq_domain; 186 struct irq_domain *irq_domain;
@@ -895,12 +893,6 @@ static int mtk_pcie_parse_port(struct mtk_pcie *pcie,
895 if (!port) 893 if (!port)
896 return -ENOMEM; 894 return -ENOMEM;
897 895
898 err = of_property_read_u32(node, "num-lanes", &port->lane);
899 if (err) {
900 dev_err(dev, "missing num-lanes property\n");
901 return err;
902 }
903
904 snprintf(name, sizeof(name), "port%d", slot); 896 snprintf(name, sizeof(name), "port%d", slot);
905 regs = platform_get_resource_byname(pdev, IORESOURCE_MEM, name); 897 regs = platform_get_resource_byname(pdev, IORESOURCE_MEM, name);
906 port->base = devm_ioremap_resource(dev, regs); 898 port->base = devm_ioremap_resource(dev, regs);