summaryrefslogtreecommitdiffstats
path: root/drivers/clk/hisilicon
diff options
context:
space:
mode:
authorRonald Wahl <rwahl@gmx.de>2018-10-10 15:54:54 +0200
committerStephen Boyd <sboyd@kernel.org>2018-10-16 23:49:39 +0200
commit0f5cb0e6225cae2f029944cb8c74617aab6ddd49 (patch)
tree9f728cd6f6bb0aa004c3560327beb7dc33f6ac61 /drivers/clk/hisilicon
parentLinux 4.19-rc1 (diff)
downloadlinux-0f5cb0e6225cae2f029944cb8c74617aab6ddd49.tar.xz
linux-0f5cb0e6225cae2f029944cb8c74617aab6ddd49.zip
clk: at91: Fix division by zero in PLL recalc_rate()
Commit a982e45dc150 ("clk: at91: PLL recalc_rate() now using cached MUL and DIV values") removed a check that prevents a division by zero. This now causes a stacktrace when booting the kernel on a at91 platform if the PLL DIV register contains zero. This commit reintroduces this check. Fixes: a982e45dc150 ("clk: at91: PLL recalc_rate() now using cached...") Cc: <stable@vger.kernel.org> Signed-off-by: Ronald Wahl <rwahl@gmx.de> Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/hisilicon')
0 files changed, 0 insertions, 0 deletions