diff options
Diffstat (limited to 'drivers/gpu/nvgpu/tegra')
-rw-r--r-- | drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c index 1b40702a..d612fcd2 100644 --- a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c | |||
@@ -95,9 +95,10 @@ static inline void __maybe_unused pmc_write(u32 val, unsigned long reg) | |||
95 | static void gk20a_tegra_secure_page_destroy(struct device *dev, | 95 | static void gk20a_tegra_secure_page_destroy(struct device *dev, |
96 | struct secure_page_buffer *secure_buffer) | 96 | struct secure_page_buffer *secure_buffer) |
97 | { | 97 | { |
98 | DEFINE_DMA_ATTRS(attrs); | ||
98 | dma_free_attrs(&tegra_vpr_dev, secure_buffer->size, | 99 | dma_free_attrs(&tegra_vpr_dev, secure_buffer->size, |
99 | (void *)(uintptr_t)secure_buffer->iova, | 100 | (void *)(uintptr_t)secure_buffer->iova, |
100 | secure_buffer->iova, &secure_buffer->attrs); | 101 | secure_buffer->iova, &attrs); |
101 | } | 102 | } |
102 | 103 | ||
103 | int gk20a_tegra_secure_page_alloc(struct device *dev) | 104 | int gk20a_tegra_secure_page_alloc(struct device *dev) |
@@ -118,7 +119,6 @@ int gk20a_tegra_secure_page_alloc(struct device *dev) | |||
118 | 119 | ||
119 | secure_buffer->size = size; | 120 | secure_buffer->size = size; |
120 | secure_buffer->iova = iova; | 121 | secure_buffer->iova = iova; |
121 | secure_buffer->attrs = attrs; | ||
122 | secure_buffer->destroy = gk20a_tegra_secure_page_destroy; | 122 | secure_buffer->destroy = gk20a_tegra_secure_page_destroy; |
123 | 123 | ||
124 | return 0; | 124 | return 0; |