Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp829598iob; Wed, 4 May 2022 08:47:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZimvh4RnarqZVyGqiHavRZ1iiH+MvbcALxRN0NJJeGagI9hChyFGv3odoHUvGT4F1wEvP X-Received: by 2002:a17:906:c149:b0:6df:f047:1698 with SMTP id dp9-20020a170906c14900b006dff0471698mr21114993ejc.16.1651679274951; Wed, 04 May 2022 08:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651679274; cv=none; d=google.com; s=arc-20160816; b=xloQ6NL9kJJB4v7/VCDsoPUrImlrszXojfguldJ2VHMWS2kTufXCP0AQKPw8RiTVZC FIuDurgz+YhKR6WuEX3J2mMuZ8X/PWcam8VFTXn8Jw+a5j4gkE3e1aEEyNDGywTWWC3Q UtrnUxKIz6PY87EZlq/G1/eeEFhKCgksT0qd9a3fGGgZnKtzSzoM00/UaUWNiB2ZSI5j DtC/UKreFalu64jt1Ir73jOaguTP/HzGg4I7oe+uHs/rUwIi/2VKFlZ4whylNX04Rcor jjc7JYg4PeK3iLnW1oTGgdTU96nOgIXQ/L62QWAOftRYRI/A7ZMZ/09xCH0qbAsFn8gN PwmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=1f4SBFBJMaiyWW+OZ9FwRsB77hHDXlOvNwoIoORkwEc=; b=Olv7lqbv5absmI8DzmgItLoiwyPCOL9OAdj2LgFlcH1oU97AxnsIpwb8NaxO9s7hpX rNz8yWg8udbihVOzyH9pMoGGedCxM/tc9pzZboIbnViQSONMj8CcyprO+YnWUb2WAo+D B+sVxyqYpfyE7LSUDVPfb1fmkO5K6l5XP9XGzVpAVHMTrnNEM/+mSoLH2C8nOfC1zIpo p9b+g+vJ0N4Ik/g7YZkcGiRDhKi9XflNQpnZSaOqfyoPpjlsG8ePhIROMr4lHSd96H5r ZzAYUggHtTvWEFloKDM+quitgJMUesXRaSr5/o9CX8mkEUX8dxWCqcoonsvM6X2vtDQ1 Yrfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=mail header.b="Jb27D/wd"; 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 o19-20020a17090637d300b006df79ec22fdsi16272173ejc.567.2022.05.04.08.47.30; Wed, 04 May 2022 08:47:54 -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=@baikalelectronics.ru header.s=mail header.b="Jb27D/wd"; 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 S243076AbiECV1y (ORCPT + 99 others); Tue, 3 May 2022 17:27:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242947AbiECV1Y (ORCPT ); Tue, 3 May 2022 17:27:24 -0400 Received: from mail.baikalelectronics.ru (mail.baikalelectronics.com [87.245.175.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E50E34161F; Tue, 3 May 2022 14:23:39 -0700 (PDT) Received: from mail.baikalelectronics.ru (unknown [192.168.51.25]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 377A816A9; Wed, 4 May 2022 00:24:12 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.baikalelectronics.ru 377A816A9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baikalelectronics.ru; s=mail; t=1651613052; bh=1f4SBFBJMaiyWW+OZ9FwRsB77hHDXlOvNwoIoORkwEc=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=Jb27D/wdLNlDtQyTHTCfnCOvqenrXizO1iA995zACny6lJh6/EGVVl/Galj2aTFPm oB3aA3GpYwVONTwl6B6Yunv6VAURyiM2ZW0GImxbyx28QUWuabWYvmFWRL3hxPF+xX pn7nbu7iXf4CU7sLdIxjCaEoNIuAbLjDKUwLBe0w= Received: from localhost (192.168.53.207) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 4 May 2022 00:23:38 +0300 From: Serge Semin To: Jingoo Han , Gustavo Pimentel , Bjorn Helgaas , Lorenzo Pieralisi , Rob Herring , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= CC: Serge Semin , Serge Semin , Alexey Malahov , Pavel Parkhomenko , Frank Li , Manivannan Sadhasivam , , Subject: [PATCH v2 13/13] PCI: dwc-plat: Drop dw_plat_pcie_of_match forward declaration Date: Wed, 4 May 2022 00:23:00 +0300 Message-ID: <20220503212300.30105-14-Sergey.Semin@baikalelectronics.ru> In-Reply-To: <20220503212300.30105-1-Sergey.Semin@baikalelectronics.ru> References: <20220503212300.30105-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 The denoted forward declaration used to be required to get the OF-device ID structure by calling the of_match_device() method. The later method invocation has been replaced with the of_device_get_match_data() call in the commit 5c204204cf24 ("PCI: designware-plat: Prefer of_device_get_match_data()"). Thus the forward declaration of the OF-compatible device strings no longer needed. Drop it for good. Signed-off-by: Serge Semin Reviewed-by: Manivannan Sadhasivam --- drivers/pci/controller/dwc/pcie-designware-plat.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pci/controller/dwc/pcie-designware-plat.c b/drivers/pci/controller/dwc/pcie-designware-plat.c index 99cf2ac5b0ba..e606c5d5f06f 100644 --- a/drivers/pci/controller/dwc/pcie-designware-plat.c +++ b/drivers/pci/controller/dwc/pcie-designware-plat.c @@ -29,8 +29,6 @@ struct dw_plat_pcie_of_data { enum dw_pcie_device_mode mode; }; -static const struct of_device_id dw_plat_pcie_of_match[]; - static const struct dw_pcie_host_ops dw_plat_pcie_host_ops = { }; -- 2.35.1