File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#include <linux/clk.h>
10
10
#include <linux/device.h>
11
- #include <linux/dma-iommu.h>
12
11
#include <linux/dma-mapping.h>
13
12
#include <linux/errno.h>
14
13
#include <linux/iommu.h>
@@ -144,11 +143,6 @@ static struct iommu_domain *sprd_iommu_domain_alloc(unsigned int domain_type)
144
143
if (!dom )
145
144
return NULL ;
146
145
147
- if (iommu_get_dma_cookie (& dom -> domain )) {
148
- kfree (dom );
149
- return NULL ;
150
- }
151
-
152
146
spin_lock_init (& dom -> pgtlock );
153
147
154
148
dom -> domain .geometry .aperture_start = 0 ;
@@ -161,7 +155,6 @@ static void sprd_iommu_domain_free(struct iommu_domain *domain)
161
155
{
162
156
struct sprd_iommu_domain * dom = to_sprd_domain (domain );
163
157
164
- iommu_put_dma_cookie (domain );
165
158
kfree (dom );
166
159
}
167
160
You can’t perform that action at this time.
0 commit comments