clk: mvebu: Fix valid value range checking for cpu_freq_select
authorAxel Lin <axel.lin@ingics.com>
Mon, 8 Apr 2013 03:43:02 +0000 (11:43 +0800)
committerMike Turquette <mturquette@linaro.org>
Tue, 9 Apr 2013 05:26:36 +0000 (22:26 -0700)
commit4cb24e68a5af427651b3529cd3fe382fb9ba1544
tree6d2961ffbf377e4544ecb22a53c4db827b4c5d2b
parenta68de8e4ab2756d8e125cf327f044c895b6a6b3d
clk: mvebu: Fix valid value range checking for cpu_freq_select

cpu_freq_select is used as array subscript, thus the valid value range
is 0 ... ARRAY_SIZE() - 1.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
[mturquette@linaro.org: fixed up trivial merge issues]
drivers/clk/mvebu/clk-core.c