]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-sa1100.c: move clock enable/disable to probe/remove
authorChao Xie <chao.xie@marvell.com>
Wed, 20 Feb 2013 02:15:48 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:29 +0000 (16:53 +1100)
commit6c2805348622c0dce1a55a1bd7d13977b541fe55
tree7cb501692a6618792652216fe790981c6f0ec7f9
parent9b4c9b813504f6efea767791704a632ba28b0b98
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>
drivers/rtc/rtc-sa1100.c