clk: tegra: Fix clock rate computation
authorThierry Reding <thierry.reding@gmail.com>
Mon, 18 Nov 2013 15:11:35 +0000 (16:11 +0100)
committerPeter De Schrijver <pdeschrijver@nvidia.com>
Tue, 26 Nov 2013 16:44:00 +0000 (18:44 +0200)
commit00c674e42c278e7af7b39b6c72dbbaa5e7ebd96c
tree72308d5561ffefccd18e45524a6f27817e2271d1
parent480fe6f4cb35d1a3bd14c41736924a97f28346bb
clk: tegra: Fix clock rate computation

The PLL output frequency is multiplied during the P-divider computation,
so it needs to be divided by the P-divider again before returning.

This fixes an issue where clk_round_rate() would return the multiplied
frequency instead of the real one after the P-divider.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-pll.c