iommu/omap: Remove unused union fields
authorSuman Anna <s-anna@ti.com>
Mon, 20 Jul 2015 22:33:27 +0000 (17:33 -0500)
committerJoerg Roedel <jroedel@suse.de>
Mon, 3 Aug 2015 14:04:25 +0000 (16:04 +0200)
There are couple of unions defined in the structures
iotlb_entry and cr_regs. There are no usage/references
to some of these union fields in the code, so clean
them up and simplify the structures.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.h

index b6cc90b2ba41e628287eeda405abeebdf2265e13..5b98408c18bf9b2cab0539165d5ef0bc30358662 100644 (file)
@@ -22,12 +22,7 @@ struct iotlb_entry {
        u32 da;
        u32 pa;
        u32 pgsz, prsvd, valid;
-       union {
-               u16 ap;
-               struct {
-                       u32 endian, elsz, mixed;
-               };
-       };
+       u32 endian, elsz, mixed;
 };
 
 struct omap_iommu {
@@ -54,20 +49,8 @@ struct omap_iommu {
 };
 
 struct cr_regs {
-       union {
-               struct {
-                       u16 cam_l;
-                       u16 cam_h;
-               };
-               u32 cam;
-       };
-       union {
-               struct {
-                       u16 ram_l;
-                       u16 ram_h;
-               };
-               u32 ram;
-       };
+       u32 cam;
+       u32 ram;
 };
 
 struct iotlb_lock {