rtc: pcf8563: fix output clock rate
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 7 Nov 2017 12:12:17 +0000 (13:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:07:27 +0000 (10:07 +0100)
commit9146b10f8cd64c2e467c8f98ccb19dcb15812e83
tree6bb90dd7bc5ca49ef774b0739a48a6a7f6ccd2e0
parentcf53526f3312f972043d0c6fa745cfb9f777a0c9
rtc: pcf8563: fix output clock rate

[ Upstream commit a3350f9c57ffad569c40f7320b89da1f3061c5bb ]

The pcf8563_clkout_recalc_rate function erroneously ignores the
frequency index read from the CLKO register and always returns
32768 Hz.

Fixes: a39a6405d5f9 ("rtc: pcf8563: add CLKOUT to common clock framework")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rtc/rtc-pcf8563.c