rockchip:iommu:fix build error when iommu disabled

This commit is contained in:
xxm
2014-07-31 16:16:47 +08:00
parent b3b1d3fa61
commit 7f0ffc5dbc
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;