]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iommu/omap: Remove omap_iommu_arch_version() and version field
authorSuman Anna <s-anna@ti.com>
Wed, 22 Oct 2014 22:22:24 +0000 (17:22 -0500)
committerJoerg Roedel <jroedel@suse.de>
Thu, 23 Oct 2014 12:32:25 +0000 (14:32 +0200)
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>
drivers/iommu/omap-iommu.c
drivers/iommu/omap-iommu.h
drivers/iommu/omap-iommu2.c

index ea04e4d30bbfc44e039995ac0ccfb161eb49f956..f9efa6ba99f569accc4f23864f30ad6665ae5a0e 100644 (file)
@@ -138,15 +138,6 @@ void omap_iommu_restore_ctx(struct device *dev)
 }
 EXPORT_SYMBOL_GPL(omap_iommu_restore_ctx);
 
-/**
- * omap_iommu_arch_version - Return running iommu arch version
- **/
-u32 omap_iommu_arch_version(void)
-{
-       return arch_iommu->version;
-}
-EXPORT_SYMBOL_GPL(omap_iommu_arch_version);
-
 static int iommu_enable(struct omap_iommu *obj)
 {
        int err;
index d7c51327cd25b93aeded5f774dacf4e3c993e2c6..45fe67d641e2513cd7b60395ada0093a7c71b34d 100644 (file)
@@ -70,8 +70,6 @@ struct cr_regs {
 
 /* architecture specific functions */
 struct iommu_functions {
-       unsigned long   version;
-
        int (*enable)(struct omap_iommu *obj);
        void (*disable)(struct omap_iommu *obj);
        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)
 /*
  * global functions
  */
-extern u32 omap_iommu_arch_version(void);
-
 extern void omap_iotlb_cr_to_e(struct cr_regs *cr, struct iotlb_entry *e);
 
 extern int
index 5e1ea3b0bf16e0a8b917da634389c9bcb21f981b..2f6a9f76c6ee61b5d7b958c5dde8ba4c3a92aa46 100644 (file)
@@ -297,8 +297,6 @@ static void omap2_cr_to_e(struct cr_regs *cr, struct iotlb_entry *e)
 }
 
 static const struct iommu_functions omap2_iommu_ops = {
-       .version        = IOMMU_ARCH_VERSION,
-
        .enable         = omap2_iommu_enable,
        .disable        = omap2_iommu_disable,
        .set_twl        = omap2_iommu_set_twl,