From patchwork Thu Sep 26 11:29:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 174473 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1920891ill; Thu, 26 Sep 2019 04:31:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaFfm+9dmbllS/EhLyTE2HWjEkyOAnDLoQ3qf9xKG2NNgQ+er16qUMwsNbgDnzKvoqcNfo X-Received: by 2002:a05:6402:696:: with SMTP id f22mr2985823edy.216.1569497509537; Thu, 26 Sep 2019 04:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569497509; cv=none; d=google.com; s=arc-20160816; b=qGq1HVZo6Ge9lvFxSwB65f6nb4drhcEj+IcGC4UU6qVg/O1kMlhWV2NepdaHpVQd1r ZXxMCZB/j5vXzev8pzqTxjDP9OgagbRbWkJnFN/2JAgsK5XVh27mBRcxEwCjiZNKtRBD O3MKtReELs+UXaAJhltdsymbAGMwyWZCoBwjV1RvsKkcBTHN+MgpJCg5sd7at5iGbF7L tJXrfyAJlBHzC2JsN/a3P62M3Q47Np5eXwgQ3+dCB6Fj5Ry2YT3soVoDVxE6PhLGV70q fk839JgwFU0hbJJzqVf/ik+aGfANf5UNsa1nJlm9pAXKatS/gTtT26dVEk36ctfBQnBS NQzQ== 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=zjdKeRfFg26NOLGmk6yPz1vY8BAAv5jWqap9n0vA/hI=; b=OVi4jNoy/BlaRO1LqtG7yccHCVJNluNSoUQhfkGcLCzHR0GAK6lJjwbTLlKkqYUJRY IlU7fAt7xfmVs5Brr8VZZzO85FMjMWkB4YF7ZxABWdGfmphK8/VcA+Z+jRdP3lN9w9Ao N6m1ioMzRhoOCsRsp1ogaufTHdE/gnOPZTDiDEzcEodbw3s/xtlr1TqiAoGo9MxvDIC/ aXnUGyaOBc9KCgV6iLGDIrzfT1y0izGGZ+lvpDp6i9fMJv8SbH+lscq1sJUu3GrpittD Jd96IcR7YGMj+uB+v5EXMzK/H4kn5iDKL4tGQQ87WzvGh78KlH/9nwTlyw49aTGwCTOD A09g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=q0MxyEK3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id gh12si815091ejb.191.2019.09.26.04.31.49; Thu, 26 Sep 2019 04:31:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=q0MxyEK3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726801AbfIZLbq (ORCPT + 26 others); Thu, 26 Sep 2019 07:31:46 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:53000 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726710AbfIZLbo (ORCPT ); Thu, 26 Sep 2019 07:31:44 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8QBVad7016253; Thu, 26 Sep 2019 06:31:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569497496; bh=zjdKeRfFg26NOLGmk6yPz1vY8BAAv5jWqap9n0vA/hI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=q0MxyEK36ITvOeAVTow3U80qAUmlqHfYuNppmkNQhQXsuDHgL3qwVxtpq5mkgdwpC m9+cvsST2UBLEToW+sssf9ntGI4HxIFVBtCzehXJnSxtkN4pdAGZWEOoPJnw5SgmFy 31HApJtVjfjnsm2EBN8hzCoLLEx0XRrPRznJxy8I= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8QBVaT4092245 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Sep 2019 06:31:36 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 26 Sep 2019 06:31:36 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 26 Sep 2019 06:31:29 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8QBUTk8069017; Thu, 26 Sep 2019 06:31:32 -0500 From: Kishon Vijay Abraham I To: Bjorn Helgaas , Jonathan Corbet , Rob Herring , Jon Mason , Dave Jiang , Allen Hubbe , Lorenzo Pieralisi CC: Mark Rutland , , , , , , Subject: [RFC PATCH 15/21] PCI: endpoint: Remove unused pci_epf_match_device() Date: Thu, 26 Sep 2019 16:59:27 +0530 Message-ID: <20190926112933.8922-16-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190926112933.8922-1-kishon@ti.com> References: <20190926112933.8922-1-kishon@ti.com> MIME-Version: 1.0 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(-) -- 2.17.1 diff --git a/drivers/pci/endpoint/pci-epf-core.c b/drivers/pci/endpoint/pci-epf-core.c index 388966faf17a..9fa4d8d4d829 100644 --- a/drivers/pci/endpoint/pci-epf-core.c +++ b/drivers/pci/endpoint/pci-epf-core.c @@ -619,22 +619,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 b5075119f3ad..80505106c770 100644 --- a/include/linux/pci-epf.h +++ b/include/linux/pci-epf.h @@ -189,8 +189,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,