clk: tegra: Fix T210 effective NDIV calculation
authorAlex Frid <afrid@nvidia.com>
Tue, 25 Jul 2017 10:34:07 +0000 (13:34 +0300)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 23 Aug 2017 22:59:24 +0000 (15:59 -0700)
commita851ea2b9e1084a7bb02403ca03667e162e226fe
treeebd8c577f1bea603f2b6a84c4c92d3d09bdd5624
parentbc7b34a2fb78661b2980d949aad8edc39c253e3a
clk: tegra: Fix T210 effective NDIV calculation

Don't take the fractional part into account to calculate the effective
NDIV if fractional ndiv is not enabled.

Signed-off-by: Alex Frid <afrid@nvidia.com>
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/tegra/clk-tegra210.c