summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorZijun Hu <quic_zijuhu@quicinc.com>2025-02-17 20:26:46 +0800
committerKrzysztof Wilczyński <kwilczynski@kernel.org>2025-03-08 14:47:31 +0000
commit22a01177c30fb4c0ea5e5f9f26473b5ee4660310 (patch)
tree80ed30980a6a7651354e2dcb35ebf60e2670524a /include/linux
parentaba2b17810d7e2d2c4942c56fa3bb0f6e6d616ff (diff)
PCI: endpoint: Remove unused devm_pci_epc_destroy()
The static function devm_pci_epc_match() is only invoked within the devm_pci_epc_destroy(). However, since it was initially introduced, this new API has had no callers. Thus, remove both the unused API and the static function. Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com> Link: https://lore.kernel.org/r/20250217-remove_api-v2-1-b169c9117045@quicinc.com Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> [kwilczynski: commit log] Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pci-epc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/pci-epc.h b/include/linux/pci-epc.h
index 713348322dea..9970ae73c8df 100644
--- a/include/linux/pci-epc.h
+++ b/include/linux/pci-epc.h
@@ -261,7 +261,6 @@ __devm_pci_epc_create(struct device *dev, const struct pci_epc_ops *ops,
struct pci_epc *
__pci_epc_create(struct device *dev, const struct pci_epc_ops *ops,
struct module *owner);
-void devm_pci_epc_destroy(struct device *dev, struct pci_epc *epc);
void pci_epc_destroy(struct pci_epc *epc);
int pci_epc_add_epf(struct pci_epc *epc, struct pci_epf *epf,
enum pci_epc_interface_type type);