mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
rockchip:iommu:fix build error when iommu disabled
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
#ifndef __ASM_PLAT_IOVMM_H
|
||||
#define __ASM_PLAT_IOVMM_H
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_IOVMM
|
||||
struct scatterlist;
|
||||
struct device;
|
||||
#ifdef CONFIG_ROCKCHIP_IOVMM
|
||||
|
||||
int iovmm_activate(struct device *dev);
|
||||
void iovmm_deactivate(struct device *dev);
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <linux/list.h>
|
||||
#include <linux/atomic.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/device.h>
|
||||
|
||||
#define IEP_SYSMMU_COMPATIBLE_NAME "iommu,iep_mmu"
|
||||
#define VIP_SYSMMU_COMPATIBLE_NAME "iommu,vip_mmu"
|
||||
@@ -126,7 +127,6 @@ static inline void rockchip_sysmmu_set_prefbuf(struct device *owner,
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_IOMMU_API
|
||||
#include <linux/device.h>
|
||||
static inline void platform_set_sysmmu(struct device *sysmmu, struct device *dev)
|
||||
{
|
||||
dev->archdata.iommu = sysmmu;
|
||||
|
||||
Reference in New Issue
Block a user