From: Guo Zeng Date: Wed, 10 Dec 2014 23:52:24 +0000 (-0800) Subject: drivers/rtc/rtc-sirfsoc.c: move hardware initilization earlier in probe X-Git-Tag: omap-for-v3.20/drop-legacy-3517~139^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e95325525c4383565cea4f402f15a3113162d05;p=pandora-kernel.git 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 Signed-off-by: Barry Song Cc: Alessandro Zummo Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed