]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 14 Jan 2015 13:42:50 +0000 (14:42 +0100)
commit56773a63532f311fbac75b5c16dfccebd2525bbe
treedc2373b1a1b8835e14c32a1e08fbfabfb72bf053
parentce4a451f616a1e7ab58cfeceea5e49c8b1c68c81
drivers/rtc/rtc-sirfsoc.c: move hardware initilization earlier in probe

commit 0e95325525c4383565cea4f402f15a3113162d05 upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/rtc/rtc-sirfsoc.c