diff options
Diffstat (limited to 'drivers/iommu/omap-iommu.h')
-rw-r--r-- | drivers/iommu/omap-iommu.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/iommu/omap-iommu.h b/drivers/iommu/omap-iommu.h index 4fc51c8e24b1..d7c51327cd25 100644 --- a/drivers/iommu/omap-iommu.h +++ b/drivers/iommu/omap-iommu.h | |||
@@ -10,6 +10,9 @@ | |||
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #ifndef _OMAP_IOMMU_H | ||
14 | #define _OMAP_IOMMU_H | ||
15 | |||
13 | #if defined(CONFIG_ARCH_OMAP1) | 16 | #if defined(CONFIG_ARCH_OMAP1) |
14 | #error "iommu for this processor not implemented yet" | 17 | #error "iommu for this processor not implemented yet" |
15 | #endif | 18 | #endif |
@@ -92,7 +95,6 @@ struct iommu_functions { | |||
92 | ssize_t (*dump_ctx)(struct omap_iommu *obj, char *buf, ssize_t len); | 95 | ssize_t (*dump_ctx)(struct omap_iommu *obj, char *buf, ssize_t len); |
93 | }; | 96 | }; |
94 | 97 | ||
95 | #ifdef CONFIG_IOMMU_API | ||
96 | /** | 98 | /** |
97 | * dev_to_omap_iommu() - retrieves an omap iommu object from a user device | 99 | * dev_to_omap_iommu() - retrieves an omap iommu object from a user device |
98 | * @dev: iommu client device | 100 | * @dev: iommu client device |
@@ -103,7 +105,6 @@ static inline struct omap_iommu *dev_to_omap_iommu(struct device *dev) | |||
103 | 105 | ||
104 | return arch_data->iommu_dev; | 106 | return arch_data->iommu_dev; |
105 | } | 107 | } |
106 | #endif | ||
107 | 108 | ||
108 | /* | 109 | /* |
109 | * MMU Register offsets | 110 | * MMU Register offsets |
@@ -220,3 +221,5 @@ static inline void iommu_write_reg(struct omap_iommu *obj, u32 val, size_t offs) | |||
220 | { | 221 | { |
221 | __raw_writel(val, obj->regbase + offs); | 222 | __raw_writel(val, obj->regbase + offs); |
222 | } | 223 | } |
224 | |||
225 | #endif /* _OMAP_IOMMU_H */ | ||