aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/cxl/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/cxl/base.c')
-rw-r--r--drivers/misc/cxl/base.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/drivers/misc/cxl/base.c b/drivers/misc/cxl/base.c
index e1e80cb99ad9..7557835cdfcd 100644
--- a/drivers/misc/cxl/base.c
+++ b/drivers/misc/cxl/base.c
@@ -106,41 +106,6 @@ int cxl_update_properties(struct device_node *dn,
106} 106}
107EXPORT_SYMBOL_GPL(cxl_update_properties); 107EXPORT_SYMBOL_GPL(cxl_update_properties);
108 108
109/*
110 * API calls into the driver that may be called from the PHB code and must be
111 * built in.
112 */
113bool cxl_pci_associate_default_context(struct pci_dev *dev, struct cxl_afu *afu)
114{
115 bool ret;
116 struct cxl_calls *calls;
117
118 calls = cxl_calls_get();
119 if (!calls)
120 return false;
121
122 ret = calls->cxl_pci_associate_default_context(dev, afu);
123
124 cxl_calls_put(calls);
125
126 return ret;
127}
128EXPORT_SYMBOL_GPL(cxl_pci_associate_default_context);
129
130void cxl_pci_disable_device(struct pci_dev *dev)
131{
132 struct cxl_calls *calls;
133
134 calls = cxl_calls_get();
135 if (!calls)
136 return;
137
138 calls->cxl_pci_disable_device(dev);
139
140 cxl_calls_put(calls);
141}
142EXPORT_SYMBOL_GPL(cxl_pci_disable_device);
143
144static int __init cxl_base_init(void) 109static int __init cxl_base_init(void)
145{ 110{
146 struct device_node *np; 111 struct device_node *np;