clk: socfpga: stratix10: fix rate caclulationg for cnt_clks
authorDinh Nguyen <dinguyen@kernel.org>
Wed, 14 Aug 2019 15:30:14 +0000 (10:30 -0500)
committerStephen Boyd <sboyd@kernel.org>
Wed, 14 Aug 2019 16:23:21 +0000 (09:23 -0700)
commitc7ec75ea4d5316518adc87224e3cff47192579e7
treecf349df383621c280409c7788127b939ea6b90d8
parentbaf7b79e1ad79a41fafd8ab8597b9a96962d822d
clk: socfpga: stratix10: fix rate caclulationg for cnt_clks

Checking bypass_reg is incorrect for calculating the cnt_clk rates.
Instead we should be checking that there is a proper hardware register
that holds the clock divider.

Cc: stable@vger.kernel.org
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Link: https://lkml.kernel.org/r/20190814153014.12962-1-dinguyen@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/socfpga/clk-periph-s10.c