drivers/rtc/rtc-pl031.c: fix the missing operation on enable
authorHaojian Zhuang <[email protected]>
Mon, 4 Feb 2013 22:28:54 +0000 (14:28 -0800)
committerLinus Torvalds <[email protected]>
Tue, 5 Feb 2013 09:38:49 +0000 (20:38 +1100)
commite7e034e18a0ab6bafb2425c3242cac311164f4d6
treefec0169c405a6f6618df263db8d6cb20c4e6cbd4
parent72fca4a4b32dc778b5b885c3498700e42b610d49
drivers/rtc/rtc-pl031.c: fix the missing operation on enable

The RTC control register should be enabled in the process of
initializing.

Without this patch, I failed to enable RTC in Hisilicon Hi3620 SoC.  The
register mapping section in RTC is always read as zero.  So I doubt that
ST guys may already enable this register in bootloader.  So they won't
meet this issue.

Signed-off-by: Haojian Zhuang <[email protected]>
Cc: Srinidhi Kasagar <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-pl031.c