]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-hym8563.c: return clock rate even when clock is disabled
authorHeiko Stuebner <heiko@sntech.de>
Thu, 16 Apr 2015 19:45:34 +0000 (12:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:04:01 +0000 (09:04 -0400)
commit550c531e9cd45cd0dd677a8b4f263081d363946b
tree6f83a13dd27b1e1d39b3091b0ba1b09e9a491158
parente6b15e4bbf3c29c186a0fb9a25481c7cca14d49c
drivers/rtc/rtc-hym8563.c: return clock rate even when clock is disabled

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@sntech.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-hym8563.c