.. | .. |
---|
1 | 1 | // SPDX-License-Identifier: GPL-2.0 |
---|
2 | | -/* Glue code to lib/swiotlb.c */ |
---|
3 | 2 | |
---|
4 | 3 | #include <linux/pci.h> |
---|
5 | 4 | #include <linux/cache.h> |
---|
6 | 5 | #include <linux/init.h> |
---|
7 | 6 | #include <linux/swiotlb.h> |
---|
8 | | -#include <linux/bootmem.h> |
---|
| 7 | +#include <linux/memblock.h> |
---|
9 | 8 | #include <linux/dma-direct.h> |
---|
10 | 9 | #include <linux/mem_encrypt.h> |
---|
11 | 10 | |
---|
.. | .. |
---|
62 | 61 | |
---|
63 | 62 | void __init pci_swiotlb_init(void) |
---|
64 | 63 | { |
---|
65 | | - if (swiotlb) { |
---|
| 64 | + if (swiotlb) |
---|
66 | 65 | swiotlb_init(0); |
---|
67 | | - dma_ops = &swiotlb_dma_ops; |
---|
68 | | - } |
---|
69 | 66 | } |
---|
70 | 67 | |
---|
71 | 68 | void __init pci_swiotlb_late_init(void) |
---|