Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp448581pxb; Wed, 11 Nov 2020 07:39:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPMXT/X1ZBYvkguvVj4LcsKlrdHFU/Apl2jcReLIScU/4KZpqn06cP1MeQFVJ4tJ3qIHvR X-Received: by 2002:a50:99c3:: with SMTP id n3mr5720893edb.213.1605109154654; Wed, 11 Nov 2020 07:39:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605109154; cv=none; d=google.com; s=arc-20160816; b=Q42axgtcgIYGsPKHpOZj0QiKqXjhgxnAU+GrUaJlCj7w0CIYIiM/6sTejsNLZblppR aC4QPTDoMSqvUX6agiuat+3DL2ZIEtAmSd9f5+1jTF1sRRjnfcCm6v1jJoNyqPJMTOdQ N3qv8ZGwK3E/ZZ8oDN3bY4tnhe3FHLxTFnkW6O4do58LWrdviCX5zdf2iMgaRs+wWDaa Mz2iW8ylmmIrEUmVRmpMm+9JsK13B6+daezcOCN5GRggZT5XzJ9/i8ODnI2K/njWU+mY /xPekMVIIdoxXSCJW4SMKjJWskoLafOF9VkAiQw0ShU6K1yCalfEMp8sYnJcZ0sAm8qB bHEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WCJiTCBYarku1p+J3FGwyc0AS5UhsiZgThHHJxu9xzA=; b=mxsxPvORWq4Mfw9lk2bDdTMdRfjfN1iEIlqBJKwpG8u4n/iylEQAlT4uO4jk6yt5d7 QZ0G27uvCcFmu6GS8YBGr5X5kFnCR85W5tDPhRCy76SdhhC+2d4bFzTh3en/ixkWjzHE OqJSMD6vkjn8p4IuMG/Q+I3X4QzFKEnIwdRjAB+TIvlVUF09mwUu8LqMNGoqzaxXng9Y s6j4yW7hmmxJVubCqpp8mlkiOzGiK/rRabu1RCBlbB/LtA7rfKDHGvluFQKkByiyNlo4 OnB6tKc0N+79hYDihRZmSMIHAUKNXB/i51P01sr7BtnkS/BBshP1USbaZrAjgfEMhCp/ nhzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=szDJi8Am; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 93si1720319edm.34.2020.11.11.07.38.51; Wed, 11 Nov 2020 07:39:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=szDJi8Am; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727453AbgKKPgz (ORCPT + 99 others); Wed, 11 Nov 2020 10:36:55 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:37952 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727448AbgKKPgx (ORCPT ); Wed, 11 Nov 2020 10:36:53 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0ABFadA6097355; Wed, 11 Nov 2020 09:36:39 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1605109000; bh=WCJiTCBYarku1p+J3FGwyc0AS5UhsiZgThHHJxu9xzA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=szDJi8AmrmMaj/HHc2k1wkqxMS456pNNHT4HxX1CTGqYRYf4yCIKBInkzyYF04QqC 3tiVcpwGQsFD+zw75wo7UsNtpHLiyJ48+qDVNh+ZarrlL5b5cMG8bisAYVneblGUFv roTjMuO5sl5xy+O2/orOdu5a/UM0gE8O8o7IZcV8= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0ABFadvT111920 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 11 Nov 2020 09:36:39 -0600 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 11 Nov 2020 09:36:39 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 11 Nov 2020 09:36:39 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0ABFa03u042109; Wed, 11 Nov 2020 09:36:32 -0600 From: Kishon Vijay Abraham I To: Bjorn Helgaas , Jonathan Corbet , Kishon Vijay Abraham I , Lorenzo Pieralisi , Arnd Bergmann , Jon Mason , Dave Jiang , Allen Hubbe , Tom Joseph , Rob Herring CC: Greg Kroah-Hartman , , , , Subject: [PATCH v8 05/18] PCI: endpoint: Remove unused pci_epf_match_device() Date: Wed, 11 Nov 2020 21:05:46 +0530 Message-ID: <20201111153559.19050-6-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201111153559.19050-1-kishon@ti.com> References: <20201111153559.19050-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unused pci_epf_match_device() function added in pci-epf-core.c Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-epf-core.c | 16 ---------------- include/linux/pci-epf.h | 2 -- 2 files changed, 18 deletions(-) diff --git a/drivers/pci/endpoint/pci-epf-core.c b/drivers/pci/endpoint/pci-epf-core.c index c977cf9dce56..e44a317a2a2a 100644 --- a/drivers/pci/endpoint/pci-epf-core.c +++ b/drivers/pci/endpoint/pci-epf-core.c @@ -282,22 +282,6 @@ struct pci_epf *pci_epf_create(const char *name) } EXPORT_SYMBOL_GPL(pci_epf_create); -const struct pci_epf_device_id * -pci_epf_match_device(const struct pci_epf_device_id *id, struct pci_epf *epf) -{ - if (!id || !epf) - return NULL; - - while (*id->name) { - if (strcmp(epf->name, id->name) == 0) - return id; - id++; - } - - return NULL; -} -EXPORT_SYMBOL_GPL(pci_epf_match_device); - static void pci_epf_dev_release(struct device *dev) { struct pci_epf *epf = to_pci_epf(dev); diff --git a/include/linux/pci-epf.h b/include/linux/pci-epf.h index fa3aca43eb19..f373a134ac04 100644 --- a/include/linux/pci-epf.h +++ b/include/linux/pci-epf.h @@ -165,8 +165,6 @@ static inline void *epf_get_drvdata(struct pci_epf *epf) return dev_get_drvdata(&epf->dev); } -const struct pci_epf_device_id * -pci_epf_match_device(const struct pci_epf_device_id *id, struct pci_epf *epf); struct pci_epf *pci_epf_create(const char *name); void pci_epf_destroy(struct pci_epf *epf); int __pci_epf_register_driver(struct pci_epf_driver *driver, -- 2.17.1