|
@@ -126,6 +126,7 @@ struct omap_iommu_arch_data {
|
|
|
struct omap_iommu *iommu_dev;
|
|
|
};
|
|
|
|
|
|
+#ifdef CONFIG_IOMMU_API
|
|
|
/**
|
|
|
* dev_to_omap_iommu() - retrieves an omap iommu object from a user device
|
|
|
* @dev: iommu client device
|
|
@@ -136,6 +137,7 @@ static inline struct omap_iommu *dev_to_omap_iommu(struct device *dev)
|
|
|
|
|
|
return arch_data->iommu_dev;
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
/* IOMMU errors */
|
|
|
#define OMAP_IOMMU_ERR_TLB_MISS (1 << 0)
|