rtc: hym8563: return clock rate even when clock is disabled
From: Heiko Stuebner <heiko@...> Date: Tue, 17 Feb 2015 23:18:40 +0100
Commit-Message
When the clock is disabled, do not return a rate of 0 but instead return the rate the clock will be running at after it gets enabled. This prevents problems when the core clock code is trying to determine a suitable rate, while the clock is still off. Signed-off-by: Heiko Stuebner <heiko@...>
Patch-Comment
drivers/rtc/rtc-hym8563.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Statistics
- 1 lines added
- 1 lines removed