]> git.karo-electronics.de Git - linux-beck.git/commit
drivers/rtc/rtc-s3c.c: delete duplicate clock control
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 16 Apr 2015 19:45:15 +0000 (12:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:04:00 +0000 (09:04 -0400)
commit24e1455493dae5ce4b15f83d6ad549befd15f980
tree3159347dfbf7e3a8f7e202b046655c40c46c0a7a
parentaed98b9a1be6fcf1685dfd37f0a3e78e92a21f7d
drivers/rtc/rtc-s3c.c: delete duplicate clock control

The current functions in s3c-rtc driver execute clk_enable/disable() to
control clocks and some functions execute s3c_rtc_alarm_clk_enable()
unnecessarily.  So this patch deletes the duplicate clock control and
spilts s3c_rtc_alarm_clk_enable() out as
s3c_rtc_enable_clk()/s3c_rtc_disable_clk() to improve readability.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: Inki Dae <inki.dae@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-s3c.c