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: 116063 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1773721vqx; Wed, 5 Jul 2023 03:46:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlGJPvhZJpFt/mo3sTEFCUqaotwzybQMD4zgZ936HNASALHGhOQaV0wxNbejOlTwZuhrSRDc X-Received: by 2002:a17:902:a415:b0:1b7:ecbb:aa06 with SMTP id p21-20020a170902a41500b001b7ecbbaa06mr15007308plq.55.1688553980416; Wed, 05 Jul 2023 03:46:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688553980; cv=pass; d=google.com; s=arc-20160816; b=Q68IMeetKs7Xe79vt1EEM5J/TLUFDQaMCmuy0JkOvoIyLShjwNJg5ELBR32xe7bvIA y5Y56zk/xgV3p5BDlcq52QyAwMBtPa1kF3O3YHR6XryLClTjG62ztRokk+i1O2syme/Z dooinuQsnkWpyWlx/EwS0Hw4WDA2JxWPwta2q/nZYYWFCw0JZ8Cm0xqVBZUVfAnVMgSH wl9t/j1W57XXeZ8F8OPm+0ecd662F2VGanE2HlR83aexerfYtCyh8WYh2wZwdtx2ZCfX Fu/3EMCB9uOuaXXoHK80aN9WvCGIYFWaUxw4+1dmKV1//9cDYxXI/vGsqrtnuMG10Djx OcvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:importance:content-transfer-encoding :mime-version:subject:in-reply-to:message-id:to:from:date :dkim-signature; bh=ORF7Ovs8ZIRMgtit0KQW/qwrGTpNeUvZ6qy0scFOmfo=; fh=QMZR1p4xTAPQgiL3pi5UbKTl5VRtgRu+eHcRFRoXAYE=; b=OE0CdYhzku4FrNgUdhP3JJ/WM6t9RlUEWeq18Auk5fC9d9Ltc9IzE8ErzjfQlNEbHh PC1qdtNxKupgbpZ2GrpWUTW9YfGuYjO5xRj8Fa6Wuw3JKBehMZe0YFjd/k8iR5v5nelX AZdrwieA/11eJMtn/IOkmW9jkaqrO3aykyRJadOYVkUaYFbOQRAttXq7ZENXxA9SbWci wK44fiRNET9diCBuzfiusJpUb+gdDLa1w50/dAsaCS7Zqq/u5OKr8X/9RWUBdx8NOWCU yNxepTUIVtdt/ZrDs87pWyF+Bp0EaUeSwOYoH6vwnEmDMcFDNpX29t8N9n1F536IF/qs Fo7Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.beauty header.s=zmail header.b=J43UCRVC; arc=pass (i=1 spf=pass spfdomain=linux.beauty dkim=pass dkdomain=linux.beauty dmarc=pass fromdomain=linux.beauty>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a9-20020a170902ecc900b001b8805f98e5si10092879plh.591.2023.07.05.03.46.06; Wed, 05 Jul 2023 03:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.beauty header.s=zmail header.b=J43UCRVC; arc=pass (i=1 spf=pass spfdomain=linux.beauty dkim=pass dkdomain=linux.beauty dmarc=pass fromdomain=linux.beauty>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231542AbjGEKQH (ORCPT + 99 others); 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770577178334823083?= X-GMAIL-MSGID: =?utf-8?q?1770577178334823083?= 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) {