platform: tegra: bondout: Fix typecast
Bo Yan [Sat, 8 Nov 2014 00:56:29 +0000 (16:56 -0800)]
Fix following Sparse warnings

   warning: incorrect type in argument 1 (different address spaces)

bug 200032218

Change-Id: Id3ac3a549369030cb3ceae112c8cb60a928229c4
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/598914
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

drivers/platform/tegra/bond_out.c

index a43567c..37a7065 100644 (file)
@@ -49,8 +49,7 @@ bool tegra_bonded_out_dev(enum tegra_bondout_dev dev)
 
        index = dev >> 5;
        offset = dev & 0x1f;
-       reg = readl_relaxed((void *)((uintptr_t)clk_base +
-                       bondout_offset[index]));
+       reg = readl_relaxed(clk_base + bondout_offset[index]);
        return reg & (1 << offset);
 }