ARM: shmobile: r8a73a4: safeguard against wrong clk_set_rate() uses
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 21 Jun 2013 07:10:35 +0000 (09:10 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 17 Jul 2013 05:25:36 +0000 (14:25 +0900)
commitd1c3c959f2206dad0582876af2510aded4f9eac5
tree7b52af5e65df3f0434040c03a7235630edbfefd2
parent181135e0b7f58735969619c89548f6a37cd0ee36
ARM: shmobile: r8a73a4: safeguard against wrong clk_set_rate() uses

clk_set_rate() should only be called with exact rates, returned by
clk_round_rate(). However, it is still good to verify, that the value,
passed to clock's .set_rate() method is at least valid. This patch adds
such a check for the Z-clock on r8a73a4.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/clock-r8a73a4.c