Skip to content

Commit 3acb04c

Browse files
sumanannajoergroedel
authored andcommitted
iommu/omap: Remove omap_iommu_arch_version() and version field
The function omap_iommu_arch_version() is not used anymore, and is not required either, so remove it. The .version field in struct iommu_functions that this function uses is also removed, as it is not really an ops to retrieve a version and there won't be any usage for this field either. Signed-off-by: Suman Anna <s-anna@ti.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 2b313dd commit 3acb04c

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

drivers/iommu/omap-iommu.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,6 @@ void omap_iommu_restore_ctx(struct device *dev)
138138
}
139139
EXPORT_SYMBOL_GPL(omap_iommu_restore_ctx);
140140

141-
/**
142-
* omap_iommu_arch_version - Return running iommu arch version
143-
**/
144-
u32 omap_iommu_arch_version(void)
145-
{
146-
return arch_iommu->version;
147-
}
148-
EXPORT_SYMBOL_GPL(omap_iommu_arch_version);
149-
150141
static int iommu_enable(struct omap_iommu *obj)
151142
{
152143
int err;

drivers/iommu/omap-iommu.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ struct cr_regs {
7070

7171
/* architecture specific functions */
7272
struct iommu_functions {
73-
unsigned long version;
74-
7573
int (*enable)(struct omap_iommu *obj);
7674
void (*disable)(struct omap_iommu *obj);
7775
void (*set_twl)(struct omap_iommu *obj, bool on);
@@ -191,8 +189,6 @@ static inline struct omap_iommu *dev_to_omap_iommu(struct device *dev)
191189
/*
192190
* global functions
193191
*/
194-
extern u32 omap_iommu_arch_version(void);
195-
196192
extern void omap_iotlb_cr_to_e(struct cr_regs *cr, struct iotlb_entry *e);
197193

198194
extern int

drivers/iommu/omap-iommu2.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,6 @@ static void omap2_cr_to_e(struct cr_regs *cr, struct iotlb_entry *e)
297297
}
298298

299299
static const struct iommu_functions omap2_iommu_ops = {
300-
.version = IOMMU_ARCH_VERSION,
301-
302300
.enable = omap2_iommu_enable,
303301
.disable = omap2_iommu_disable,
304302
.set_twl = omap2_iommu_set_twl,

0 commit comments

Comments
 (0)