aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/class.c
diff options
context:
space:
mode:
authorChao Xie <[email protected]>2013-02-22 00:45:17 +0000
committerLinus Torvalds <[email protected]>2013-02-22 01:22:28 +0000
commit0cc0c38e91392d2da769c9831739df43787d99e3 (patch)
treeadd267ad54c66c341418a2abe430e5f40a72c0cb /drivers/rtc/class.c
parentrtc: max8997: add driver for max8997 rtc (diff)
downloadkernel-0cc0c38e91392d2da769c9831739df43787d99e3.tar.gz
kernel-0cc0c38e91392d2da769c9831739df43787d99e3.zip
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 <[email protected]> Acked-by: Haojian Zhuang <[email protected]> Cc: Leo Song <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/rtc/class.c')
0 files changed, 0 insertions, 0 deletions