Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1528574imu; Thu, 13 Dec 2018 17:27:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wd3r8AbmsVIBPRr+E+iQ6q0Y7Q9gPaVeLbcrVO0sRplbtXFoQC8DjRCSfSG9P07Ms2lWI1 X-Received: by 2002:a63:5b1f:: with SMTP id p31mr991008pgb.56.1544750877483; Thu, 13 Dec 2018 17:27:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544750877; cv=none; d=google.com; s=arc-20160816; b=sy+jKfKg7L/Qoc1NKWsDLQ4lwQgWvlEJHlM5EIZSORWTR7V2Ohq6/5JmR+HexBOxVx EyqfAOsH+X98DLyyaVnYy6z9ImQK+S+QruO0v+NzLELOTGP35S4krqfcj+vSG6PgIzyE WsXBnl2INk1rESKYIDDUIl/Su5tqkZljZGi4BnpBcQ0hXOv4bzlHpm/EMOp5rfy6d94Z GHfC0AcwrwdLggfg6xV7oEsgFyb2VSAJs6Qg6NQuaUPSelqUlf0nSZgNTTLuZZrABFKc mpOfMHR64Cl2A+ryhJNtESHaKDi4r8smJdonpZW42kUSdmTUJINkBV8jvd2fK1wkZzDa zkLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=bTITp0gWAxrPaGyUZtWXklvBD9vJv0M6FTbbg9CHmM8=; b=iXQeeOGNX6wVzthw1q2wqf+21kbJ0sg7SvWXE93taQrUBbwJ06XyJrAsaacV911rLu qaZeO5KIjt8zByat0ur/Lv9aQJe8jtUw3LG4NfVfNEOnM83WQ+VWkX6WoS3qn6wV5ITp SMFaxkxMSxcPTtjyAa9qicfydknGOu9z31G1qugSmKE6XXAwRHVVyDVJLjrhL0hnhRjN qGWFHT/WQoeehAQJlBUZ4cnecc8GFmxluaX1Ioyz0M1Er+vAmNx/9vETcWCDrw9Fy7Nf ThvDFwOCvLA61hN6FarplChkpHMdRFIr52MRLG1jEJiTF0w6x0gZtDUCazle4VXhb+QV 8QJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 43si2793589plb.176.2018.12.13.17.27.26; Thu, 13 Dec 2018 17:27:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728902AbeLNBZz (ORCPT + 99 others); Thu, 13 Dec 2018 20:25:55 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:46181 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727638AbeLNBZy (ORCPT ); Thu, 13 Dec 2018 20:25:54 -0500 X-UUID: 01e388c211be4746a3e9218d664d41fa-20181214 X-UUID: 01e388c211be4746a3e9218d664d41fa-20181214 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2026839957; Fri, 14 Dec 2018 09:25:47 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 14 Dec 2018 09:25:46 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 14 Dec 2018 09:25:44 +0800 From: To: , , , , , , , , , CC: , , , Honghui Zhang Subject: [PATCH 1/4] PCI: mediatek: Remove un-used variant in struct mtk_pcie_port Date: Fri, 14 Dec 2018 09:25:39 +0800 Message-ID: <1544750742-31419-2-git-send-email-honghui.zhang@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1544750742-31419-1-git-send-email-honghui.zhang@mediatek.com> References: <1544750742-31419-1-git-send-email-honghui.zhang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Honghui Zhang The "lane" variant in struct mtk_pcie_port is not used, remove it. Signed-off-by: Honghui Zhang --- drivers/pci/controller/pcie-mediatek.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/pci/controller/pcie-mediatek.c b/drivers/pci/controller/pcie-mediatek.c index 6917aec..e307166 100644 --- a/drivers/pci/controller/pcie-mediatek.c +++ b/drivers/pci/controller/pcie-mediatek.c @@ -161,7 +161,6 @@ struct mtk_pcie_soc { * @obff_ck: pointer to OBFF functional block operating clock * @pipe_ck: pointer to LTSSM and PHY/MAC layer operating clock * @phy: pointer to PHY control block - * @lane: lane count * @slot: port slot * @irq: GIC irq * @irq_domain: legacy INTx IRQ domain @@ -182,7 +181,6 @@ struct mtk_pcie_port { struct clk *obff_ck; struct clk *pipe_ck; struct phy *phy; - u32 lane; u32 slot; int irq; struct irq_domain *irq_domain; @@ -895,12 +893,6 @@ static int mtk_pcie_parse_port(struct mtk_pcie *pcie, if (!port) return -ENOMEM; - err = of_property_read_u32(node, "num-lanes", &port->lane); - if (err) { - dev_err(dev, "missing num-lanes property\n"); - return err; - } - snprintf(name, sizeof(name), "port%d", slot); regs = platform_get_resource_byname(pdev, IORESOURCE_MEM, name); port->base = devm_ioremap_resource(dev, regs); -- 2.6.4