Skip to content

Commit 7e5a51e

Browse files
kishonbjorn-helgaas
authored andcommitted
PCI: endpoint: Remove unused pci_epf_match_device()
Remove unused pci_epf_match_device() function added in pci-epf-core.c Link: https://lore.kernel.org/r/20210201195809.7342-6-kishon@ti.com Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent 0e27aec commit 7e5a51e

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

drivers/pci/endpoint/pci-epf-core.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -282,22 +282,6 @@ struct pci_epf *pci_epf_create(const char *name)
282282
}
283283
EXPORT_SYMBOL_GPL(pci_epf_create);
284284

285-
const struct pci_epf_device_id *
286-
pci_epf_match_device(const struct pci_epf_device_id *id, struct pci_epf *epf)
287-
{
288-
if (!id || !epf)
289-
return NULL;
290-
291-
while (*id->name) {
292-
if (strcmp(epf->name, id->name) == 0)
293-
return id;
294-
id++;
295-
}
296-
297-
return NULL;
298-
}
299-
EXPORT_SYMBOL_GPL(pci_epf_match_device);
300-
301285
static void pci_epf_dev_release(struct device *dev)
302286
{
303287
struct pci_epf *epf = to_pci_epf(dev);

include/linux/pci-epf.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ static inline void *epf_get_drvdata(struct pci_epf *epf)
165165
return dev_get_drvdata(&epf->dev);
166166
}
167167

168-
const struct pci_epf_device_id *
169-
pci_epf_match_device(const struct pci_epf_device_id *id, struct pci_epf *epf);
170168
struct pci_epf *pci_epf_create(const char *name);
171169
void pci_epf_destroy(struct pci_epf *epf);
172170
int __pci_epf_register_driver(struct pci_epf_driver *driver,

0 commit comments

Comments
 (0)