Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4090372pxb; Mon, 1 Feb 2021 12:09:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzorozs83u0KKcQqlgRN6Rkn2WHfs0vjC7ORxa11X6KfWhGsf5E6mZ4lq6BdFkXY1PRI4QI X-Received: by 2002:a17:906:5002:: with SMTP id s2mr18985359ejj.16.1612210168830; Mon, 01 Feb 2021 12:09:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612210168; cv=none; d=google.com; s=arc-20160816; b=pSKTfr31sB4JsTUoHyPAO3DkX69H449X8u5flfaTqlY+3mr1P58haC6h+Z2QPqJQL9 K7tZpyQerf0u7BQxovfJFUfeMIkkdpQFGra/UCvDuutrWok8LIOSNHX7TVix6+A6R0Pu naigUjs44VF90YvaRWGgO/2JApgZdbNlRqJaCD3Z+MgDfjny3k/ny3ym73JLE4NkI5IT S8mObEtDOVvfSfuTJW1bvoKWI143rhsY0nR+R1rDDpTwO9XseZNq/GzQI/6W2iyKawLP ul7zp7ZTpjhtQ4i9utbYjfCW6UT7LB2YrK0E8ahp/BgvZKhkCw/i4l71ETzlcVxocBkH etdQ== 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=ojGz9ENO/MejrCxOwmhXgHWVQOQy56bGqGyJQopw8dhnHGuwc7jUPy375ikJbjaB0k 2mi20QErV8YjY40nSNvM3FTZrBHybqrDTiCwzwACkgRSixtn9Y0X8ThIrkY7Fdac6jN6 98j4eSqiEbn7aaYXI7yeTjhasYB+TZnAojl/m5m76MzlGxACwP+wMe0MALge2xe/omh+ KJsP3M5lcOQc7N7PB495/uuL1mbjFcaO815Kq/lPTkUF6Gou8EywJcqEeKOQhTWcVOpT ovbZmQSZIhR0E8qeIUaQWPx7p7zt9GUa7zGZnl+rO7o8j7NUzlZIL0T/wm5v7LsLU5n/ 6S7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VuxLylqp; 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 q26si11610330edt.415.2021.02.01.12.09.03; Mon, 01 Feb 2021 12:09:28 -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=VuxLylqp; 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 S233075AbhBAUIJ (ORCPT + 99 others); Mon, 1 Feb 2021 15:08:09 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39498 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232545AbhBAUAc (ORCPT ); Mon, 1 Feb 2021 15:00:32 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 111Jwiki037119; Mon, 1 Feb 2021 13:58:44 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1612209524; bh=WCJiTCBYarku1p+J3FGwyc0AS5UhsiZgThHHJxu9xzA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=VuxLylqpQ1i7Nt8l3UBXjTmBwPgkP2XpzDc3HJB8kdPJonX0I0CLgAOUn/0KoDuui I4EL8m3bNfQ3j5PPDNPSi0Zy4KNMZaKxsDuKLfjEhx6nzWLmVuw19h5fZYebJJMzdX rsGMo6o9NN6D9z97A6Yl/ix/R81fKjbtxlPr4jtw= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 111JwigK042372 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Feb 2021 13:58:44 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 1 Feb 2021 13:58:43 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE108.ent.ti.com (10.64.6.29) 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; Mon, 1 Feb 2021 13:58:44 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 111JwAQc085814; Mon, 1 Feb 2021 13:58:38 -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 v11 05/17] PCI: endpoint: Remove unused pci_epf_match_device() Date: Tue, 2 Feb 2021 01:27:57 +0530 Message-ID: <20210201195809.7342-6-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210201195809.7342-1-kishon@ti.com> References: <20210201195809.7342-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