summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-sh.c
diff options
context:
space:
mode:
authorChao Xie <chao.xie@marvell.com>2013-02-22 00:45:17 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-22 01:22:28 (GMT)
commit0cc0c38e91392d2da769c9831739df43787d99e3 (patch)
treeadd267ad54c66c341418a2abe430e5f40a72c0cb /drivers/rtc/rtc-sh.c
parent5e0b2704a1d5c246c8282303bbc952cba17f94fc (diff)
downloadlinux-0cc0c38e91392d2da769c9831739df43787d99e3.tar.xz
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 <chao.xie@marvell.com> Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com> Cc: Leo Song <liangs@marvell.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-sh.c')
0 files changed, 0 insertions, 0 deletions