File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change 9
9
#include <linux/component.h>
10
10
#include <linux/device.h>
11
11
#include <linux/dma-direct.h>
12
- #include <linux/dma-iommu.h>
13
12
#include <linux/err.h>
14
13
#include <linux/interrupt.h>
15
14
#include <linux/io.h>
@@ -441,17 +440,11 @@ static struct iommu_domain *mtk_iommu_domain_alloc(unsigned type)
441
440
if (!dom )
442
441
return NULL ;
443
442
444
- if (iommu_get_dma_cookie (& dom -> domain )) {
445
- kfree (dom );
446
- return NULL ;
447
- }
448
-
449
443
return & dom -> domain ;
450
444
}
451
445
452
446
static void mtk_iommu_domain_free (struct iommu_domain * domain )
453
447
{
454
- iommu_put_dma_cookie (domain );
455
448
kfree (to_mtk_domain (domain ));
456
449
}
457
450
Original file line number Diff line number Diff line change 13
13
#include <linux/component.h>
14
14
#include <linux/device.h>
15
15
#include <linux/dma-mapping.h>
16
- #include <linux/dma-iommu.h>
17
16
#include <linux/err.h>
18
17
#include <linux/interrupt.h>
19
18
#include <linux/io.h>
You can’t perform that action at this time.
0 commit comments