Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28824602rwd; Wed, 5 Jul 2023 03:20:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlEcBbH9KMuPo16CIw/8e5SECX2KOisRq6cZEN90HNpIfS4bOlLWGWZxZdtWSN5pVvwToac4 X-Received: by 2002:a17:902:b097:b0:1b8:92fc:7429 with SMTP id p23-20020a170902b09700b001b892fc7429mr9086615plr.53.1688552412533; Wed, 05 Jul 2023 03:20:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688552412; cv=pass; d=google.com; s=arc-20160816; b=Ulz/assKl3cWT3/EpJm9CbKqzGW0jMxfFgF58QTkgHWAI5LUGClNBl4oxqA4Ln704h bqoELr6AT8nnrTcV43lyjasBiLdmKE9yb1Gz6uW9CxNsoFAw7d4hP3XfdkTRxuTb8ms0 gjEqiF0oyivKfgIY6IT0F4Yu36736QxyMCJsZJHTlOJ8BbzXwnMdrtQ0R7awL51MoGM1 H0B8JkvBug08+2vORPuguKXi/ewpZbwizX2jnHX6RPKijUfkRYF9GxIyNePpePVb2Rjv i2iNMegaRWhnGbaaFdqRRrYWdjomhFkxpvrslNafQEAxhVcFIGPwfsLMZn1Wz+pHXEeC IdtQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a170902820500b001a6f0e81ec7si21317235pln.237.2023.07.05.03.19.59; Wed, 05 Jul 2023 03:20:12 -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 S231384AbjGEKQH (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=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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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 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) { -- 2.25.1