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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 20 Feb 2013 03:15:26 +0000 (03:15 +0000)
commit6ec37f6672820465afae0a1dee6d52b11248f7cd
treeb19bd624b65103210f7f54ab3107a96bbc7a61f1
parent565b34099979a3da701b78afcf16e7d3cb1af37e
drivers/rtc/rtc-pl031.c: fix the missing operation on enable

commit e7e034e18a0ab6bafb2425c3242cac311164f4d6 upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/rtc/rtc-pl031.c