From: Chao Xie Date: Fri, 22 Feb 2013 00:45:17 +0000 (-0800) Subject: drivers/rtc/rtc-sa1100.c: move clock enable/disable to probe/remove X-Git-Tag: v3.9-rc1~114^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cc0c38e91392d2da769c9831739df43787d99e3;p=pandora-kernel.git drivers/rtc/rtc-sa1100.c: move clock enable/disable to probe/remove The original sa1100_rtc_open/sa1100_rtc_release will be called when the /dev/rtc0 is opened or closed. In fact, these two functions will enable/disable the clock. Disabling clock will make rtc not work. So only enable/disable clock when probe/remove the device. Signed-off-by: Chao Xie Acked-by: Haojian Zhuang Cc: Leo Song Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed