clk: shmobile: div6: Avoid division by zero in .round_rate()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 4 Feb 2015 12:27:21 +0000 (13:27 +0100)
committerMichael Turquette <mturquette@linaro.org>
Wed, 4 Feb 2015 22:02:42 +0000 (14:02 -0800)
commit5469d4f22e0c18fc5499b11269d2c528094bcf1e
tree1a47fb1cdad6fb2931d8b0951e917ac8b9937cbc
parent039e5970750775f102b255de9bf914e04955c6da
clk: shmobile: div6: Avoid division by zero in .round_rate()

Anyone may call clk_round_rate() with a zero rate value, so we have to
protect against that.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/shmobile/clk-div6.c