drivers/rtc/rtc-pl031.c: fix the missing operation on enable
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Mon, 4 Feb 2013 22:28:54 +0000 (14:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <haojian.zhuang@linaro.org>
Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-pl031.c