From patchwork Wed Jul 5 10:15:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Chen X-Patchwork-Id: 13301933 X-Patchwork-Delegate: kw@linux.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DED6EB64DA for ; Wed, 5 Jul 2023 10:16:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230094AbjGEKQH (ORCPT ); Wed, 5 Jul 2023 06:16:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbjGEKQG (ORCPT ); Wed, 5 Jul 2023 06:16:06 -0400 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47DD0180; Wed, 5 Jul 2023 03:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688552153; cv=none; d=zohomail.com; s=zohoarc; b=TO6CBiZM6rIvspbbCHpYwuYx131U55KHTzl6zYjuIem9eFoOzWBUVmKAPJH4O/iqJNGJl53ZeNoC5N5WT5O8Fy8rrJy5lNMbKn91eNarLyPqunG+9amng/ZoRRNkvPDAoo9c7gNiRU6ZTBI3W1neYjr8uV1QDZ4QEiRzz07iMjQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688552153; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=ORF7Ovs8ZIRMgtit0KQW/qwrGTpNeUvZ6qy0scFOmfo=; b=mjNfPRgzKZmDKXtyngbIboAw1fS0KTcsbNUirmwgDH4cp36IRJDZWyumEHLuoXOvSuK/qOCOEI+n8mmUdHUlp7hE1vJ4j1lQ33sf2RhYUcKOjjrk3jJaH+rhg8IDk3N4xn207h04gpAroFSo7zCAAnVDHrRBHYCKozeBokm6HSI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=linux.beauty; spf=pass smtp.mailfrom=me@linux.beauty; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1688552153; s=zmail; d=linux.beauty; i=me@linux.beauty; h=Date:Date:From:From:To:To:Message-ID:In-Reply-To:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=ORF7Ovs8ZIRMgtit0KQW/qwrGTpNeUvZ6qy0scFOmfo=; b=J43UCRVChYV0ylWPgjjT5A8Q5uURtmGig7XxWGNT+lFnNerL80vbJdn+VFCJzoJO x4ZK2a79saV7P/Uu8+19I1RoAShwMkq1zGUKXTAfPZqb5w8Og9ytwxA7KpxrIr2t+Fj yVABDip1QuKTqvQk3hMXi/wKoUxbo/vT07S8XD1c= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 16885521516611005.9087764533741; Wed, 5 Jul 2023 03:15:51 -0700 (PDT) Date: Wed, 05 Jul 2023 18:15:51 +0800 From: Li Chen To: "Tom Joseph" , "Lorenzo Pieralisi" , =?utf-8?q?=22Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski=22?= , "Rob Herring" , "Bjorn Helgaas" , "linux-kernel" , "linux-pci" Message-ID: <189258d19e1.1132188131010980.7371471641115980549@linux.beauty> In-Reply-To: Subject: [PATCH] PCI: cadence: remove unused cdns_plat_pcie->is_rc MIME-Version: 1.0 Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org We already have cdns_plat_pcie_of_data->is_rc. Signed-off-by: Li Chen --- drivers/pci/controller/cadence/pcie-cadence-plat.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/pci/controller/cadence/pcie-cadence-plat.c b/drivers/pci/controller/cadence/pcie-cadence-plat.c index bac0541317c1..e091fef9c919 100644 --- a/drivers/pci/controller/cadence/pcie-cadence-plat.c +++ b/drivers/pci/controller/cadence/pcie-cadence-plat.c @@ -18,12 +18,9 @@ /** * struct cdns_plat_pcie - private data for this PCIe platform driver * @pcie: Cadence PCIe controller - * @is_rc: Set to 1 indicates the PCIe controller mode is Root Complex, - * if 0 it is in Endpoint mode. */ struct cdns_plat_pcie { struct cdns_pcie *pcie; - bool is_rc; }; struct cdns_plat_pcie_of_data { @@ -77,7 +74,6 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev) rc->pcie.dev = dev; rc->pcie.ops = &cdns_plat_ops; cdns_plat_pcie->pcie = &rc->pcie; - cdns_plat_pcie->is_rc = is_rc; ret = cdns_pcie_init_phy(dev, cdns_plat_pcie->pcie); if (ret) { @@ -105,7 +101,6 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev) ep->pcie.dev = dev; ep->pcie.ops = &cdns_plat_ops; cdns_plat_pcie->pcie = &ep->pcie; - cdns_plat_pcie->is_rc = is_rc; ret = cdns_pcie_init_phy(dev, cdns_plat_pcie->pcie); if (ret) {