clk: vt8500: Fix division-by-0 when requested rate=0
authorTony Prisk <linux@prisktech.co.nz>
Thu, 27 Dec 2012 00:14:31 +0000 (13:14 +1300)
committerMike Turquette <mturquette@linaro.org>
Wed, 16 Jan 2013 00:16:25 +0000 (16:16 -0800)
commit58eb5a6763deab71208fbff15b09055fac884b11
treebb5391c140cda7c3c6675f02380f88bbe6babd95
parent72480014b86c8b51fb51c5c6a0525876055c37c7
clk: vt8500: Fix division-by-0 when requested rate=0

A request to vt8500_dclk_(round_rate/set_rate) with rate=0 results
in a division-by-0 in the kernel.

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-vt8500.c