Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Kishon Vijay Abraham I and committed by
Bjorn Helgaas
7e5a51eb 0e27aecc

-18
-16
drivers/pci/endpoint/pci-epf-core.c
··· 282 282 } 283 283 EXPORT_SYMBOL_GPL(pci_epf_create); 284 284 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 - 301 285 static void pci_epf_dev_release(struct device *dev) 302 286 { 303 287 struct pci_epf *epf = to_pci_epf(dev);
-2
include/linux/pci-epf.h
··· 165 165 return dev_get_drvdata(&epf->dev); 166 166 } 167 167 168 - const struct pci_epf_device_id * 169 - pci_epf_match_device(const struct pci_epf_device_id *id, struct pci_epf *epf); 170 168 struct pci_epf *pci_epf_create(const char *name); 171 169 void pci_epf_destroy(struct pci_epf *epf); 172 170 int __pci_epf_register_driver(struct pci_epf_driver *driver,