drivers/rtc/rtc-sirfsoc.c: move hardware initilization earlier in probe
authorGuo Zeng <guo.zeng@csr.com>
Wed, 10 Dec 2014 23:52:24 +0000 (15:52 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:13 +0000 (17:41 -0800)
commit0e95325525c4383565cea4f402f15a3113162d05
treec1d6c26da1f234ce1c21738b11a1b6d8fb166970
parenta682e9c28cac152e6e54c39efcf046e0c8cfcf63
drivers/rtc/rtc-sirfsoc.c: move hardware initilization earlier in probe

Move rtc register to be later than hardware initialization.  The reason
is that devm_rtc_device_register() will do read_time() which is a
callback accessing hardware.  This sometimes causes a hang in the
hardware related callback.

Signed-off-by: Guo Zeng <guo.zeng@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
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-sirfsoc.c