diff options
author | Frederic Barrat <fbarrat@linux.ibm.com> | 2018-06-28 06:05:08 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-07-02 09:54:33 -0400 |
commit | f18a4e1d973bc69a50419eb8918f458ea89c6c3f (patch) | |
tree | 156c85a02e40f27ba93f123e70d911e4d35bd102 /drivers/misc/cxl/base.c | |
parent | 322dc4af6c95cddc4f9d806197fe6b376cfae350 (diff) |
Revert "cxl: Allow a default context to be associated with an external pci_dev"
Remove abandonned capi support for the Mellanox CX4.
This reverts commit a19bd79e31769626d288cc016e21a31b6f47bf6f.
Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl/base.c')
-rw-r--r-- | drivers/misc/cxl/base.c | 35 |
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 | } |
107 | EXPORT_SYMBOL_GPL(cxl_update_properties); | 107 | EXPORT_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 | */ | ||
113 | bool 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 | } | ||
128 | EXPORT_SYMBOL_GPL(cxl_pci_associate_default_context); | ||
129 | |||
130 | void 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 | } | ||
142 | EXPORT_SYMBOL_GPL(cxl_pci_disable_device); | ||
143 | |||
144 | static int __init cxl_base_init(void) | 109 | static int __init cxl_base_init(void) |
145 | { | 110 | { |
146 | struct device_node *np; | 111 | struct device_node *np; |