Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1397891ybk; Thu, 14 May 2020 08:03:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy1+1SKhCsFAbvHKwuSn0fnSHLtFXG0/UxZ3wkMT1O+DtfHlO9z54W/YcubMhYUJp5m/mc X-Received: by 2002:a50:c014:: with SMTP id r20mr4108604edb.110.1589468606941; Thu, 14 May 2020 08:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589468606; cv=none; d=google.com; s=arc-20160816; b=Bs9nn5l1q4MD0yJHFiQVzGoGvMgf3vYjVxYNTeszbNouGdpbJKjiqm7N3Rc7HTuOrS YnP7agnh/+SVkkt8iS81p+KRaX1VSazqJUUjfAmmeHiMyjPijwgAkFGV7BPnTFvaPz1S xn0vGlxf2+w+V4Dh9fJXybyRPhFL8oYBSF5ctvka4d1bGmFGdIPYUzlBKyduhisK8AU2 6lzhpcMGYlhd3C/jVAZs8ogq6HYBs9fikjzqn0BFmLkFOk+5sxNqo5eetx1LNdNT0ZGk mnrUq/c1RQL+AUPGNALC/4NN/daWvi+ywD9ZbOKFMPHqTW7taBTK+kqA0SeZbea7Kle2 UJ6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=qWW3b6wKFGM1AGP1VPxedbqz8b5wEZNj4elQBEhNLLA=; b=V8OAdvn7ls+SzHkGu7lGrcHx/gRtC3SprfypHqdU5qZXM0cTmOFvMWHnkg0d3fTf/9 gUKGjAlGbctTohPv7cPd7L9GJEvAdr8x3aMOuWg6rDoKA51IsCvlOuz194Enm8HfPpp/ 2UMotmqmwYfZdrreUqRAhmho6s3bM7pSA8a4XvEXHn3LcrSo3dhIASPv1rtmy6hcdkSb 7mx9Yaplg/lgpHbZgpC8K4x/o2o/7OZ5JF1glyoUYaxhyNmxcJ7veE65uO6LUKEWFUcV MjyDbndsKRWL70seYCeGz6hp9vf82SABHJoTvVzvavAd+mV3I/o9jBhtBIiKqrC4dpQ2 tG3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=t9jN4f7J; 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 c22si1671994eds.427.2020.05.14.08.03.03; Thu, 14 May 2020 08:03:26 -0700 (PDT) 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=t9jN4f7J; 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 S1728135AbgENPBJ (ORCPT + 99 others); Thu, 14 May 2020 11:01:09 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:47210 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727777AbgENPBI (ORCPT ); Thu, 14 May 2020 11:01:08 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 04EF0U5h000451; Thu, 14 May 2020 10:00:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1589468430; bh=qWW3b6wKFGM1AGP1VPxedbqz8b5wEZNj4elQBEhNLLA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=t9jN4f7JPiZltBE2Yw8PUP+EsCaGEDkxaiq4ozUB+aMFHNjJdw2P2nB+HUST87ORg mmrPZjWV5hgRwOkx4bT8hA5b+47wWQ+WOKUzo83AaBzX7c4QBrYHgwIY5iCG17lyo9 H2xJzAykWyDXhsr/v3TKrcx05RLpEjctfnTkGBK4= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 04EF0U7t103553 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 May 2020 10:00:30 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 14 May 2020 10:00:30 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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 via Frontend Transport; Thu, 14 May 2020 10:00:29 -0500 Received: from a0393678ub.india.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 04EExgAr019279; Thu, 14 May 2020 10:00:25 -0500 From: Kishon Vijay Abraham I To: Lorenzo Pieralisi , Arnd Bergmann , Jon Mason , Dave Jiang , Allen Hubbe , Tom Joseph , Bjorn Helgaas , Rob Herring CC: Greg Kroah-Hartman , Jonathan Corbet , , , , , , Kishon Vijay Abraham I Subject: [PATCH 09/19] PCI: endpoint: Remove unused pci_epf_match_device() Date: Thu, 14 May 2020 20:29:17 +0530 Message-ID: <20200514145927.17555-10-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200514145927.17555-1-kishon@ti.com> References: <20200514145927.17555-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org 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 cb6c7b886325..f9ba2e8d4a99 100644 --- a/drivers/pci/endpoint/pci-epf-core.c +++ b/drivers/pci/endpoint/pci-epf-core.c @@ -347,22 +347,6 @@ struct pci_epf *devm_pci_epf_of_create(struct device *dev, } EXPORT_SYMBOL_GPL(devm_pci_epf_of_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 e51f3070bcc4..9bd89f1be1c3 100644 --- a/include/linux/pci-epf.h +++ b/include/linux/pci-epf.h @@ -168,8 +168,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); struct pci_epf *pci_epf_of_create(struct device_node *node); struct pci_epf *devm_pci_epf_of_create(struct device *dev, -- 2.17.1