summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clockdomain.h
diff options
context:
space:
mode:
authorAnkur Kishore2013-10-12 12:14:21 +0200
committerPaul Walmsley2013-10-14 06:46:38 +0200
commitd3f5d551df68f3b1135f212ce61eaad21fe7b42d (patch)
tree021e0f55b067e94d0f341b218af7481e9c7c0a87 /arch/arm/mach-omap2/clockdomain.h
parentARM: AM33xx: hwmod: Add RNG module data (diff)
downloadkernel-qcow2-linux-d3f5d551df68f3b1135f212ce61eaad21fe7b42d.tar.gz
kernel-qcow2-linux-d3f5d551df68f3b1135f212ce61eaad21fe7b42d.tar.xz
kernel-qcow2-linux-d3f5d551df68f3b1135f212ce61eaad21fe7b42d.zip
ARM: OMAP2+: CM: cm_inst offset s16->u16
Most of the AM43x CM reg address offsets are with MSB bit '1' (on 16-bit value) leading to arithmetic miscalculations while calculating CLOCK ENABLE register's address because cm_inst field was a type of "const s16", so make it "const u16". Also modify relevant functions so as to take care of the above. [afzal@ti.com: fixup and cleanup] Signed-off-by: Ankur Kishore <a-kishore@ti.com> Signed-off-by: Afzal Mohammed <afzal@ti.com> Acked-by: Rajendra Nayak <rnayak@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/clockdomain.h')
-rw-r--r--arch/arm/mach-omap2/clockdomain.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/clockdomain.h b/arch/arm/mach-omap2/clockdomain.h
index 4b03394fa0c5..5431b0cae665 100644
--- a/arch/arm/mach-omap2/clockdomain.h
+++ b/arch/arm/mach-omap2/clockdomain.h
@@ -132,7 +132,7 @@ struct clockdomain {
u8 _flags;
const u8 dep_bit;
const u8 prcm_partition;
- const s16 cm_inst;
+ const u16 cm_inst;
const u16 clkdm_offs;
struct clkdm_dep *wkdep_srcs;
struct clkdm_dep *sleepdep_srcs;