drivers/rtc/rtc-sa1100.c: move clock enable/disable to probe/remove
authorChao Xie <chao.xie@marvell.com>
Fri, 22 Feb 2013 00:45:17 +0000 (16:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:28 +0000 (17:22 -0800)
commit0cc0c38e91392d2da769c9831739df43787d99e3
treeadd267ad54c66c341418a2abe430e5f40a72c0cb
parent5e0b2704a1d5c246c8282303bbc952cba17f94fc
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>
drivers/rtc/rtc-sa1100.c