diff options
| author | 2013-02-21 16:45:17 -0800 | |
|---|---|---|
| committer | 2013-02-21 17:22:28 -0800 | |
| commit | 0cc0c38e91392d2da769c9831739df43787d99e3 (patch) | |
| tree | add267ad54c66c341418a2abe430e5f40a72c0cb /drivers/rtc/class.c | |
| parent | rtc: max8997: add driver for max8997 rtc (diff) | |
| download | wireguard-linux-0cc0c38e91392d2da769c9831739df43787d99e3.tar.xz wireguard-linux-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 <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/class.c')
0 files changed, 0 insertions, 0 deletions
