]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sh: clkfwk: modify for_each_frequency end condition
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 18 Oct 2010 03:50:29 +0000 (03:50 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 18 Oct 2010 11:33:10 +0000 (20:33 +0900)
commitc2590f4a8ddf461d33ac2085d966432b2a6a09f2
treec0302f29a328b6200517c933db2cb4a94e96be58
parent56ea510962ec690ede2be2064de72e51a33011d9
sh: clkfwk: modify for_each_frequency end condition

The end condition of for_each_frequency should care about
both clk_rate_table_round and clk_rate_div_range_round,
and using "correct max size" is a natural idea in later function.
To avoid data over flow, this patch didn't modify
clk_rate_div_range_round side as .max = div_max + 1.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/clk.c