diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-05-21 14:25:23 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-05-21 23:58:02 -0400 |
commit | 7fc1e5c15fde0fa9d2c08441f6898a9e51593d47 (patch) | |
tree | ed37938425856f19c020bb18fc0339cbcb679c2e /arch/sh | |
parent | 30cff215b54b20d201a2bd7d50361c4c14700281 (diff) |
sh: clkfwk: beyond ARRAY_SIZE of onchip_ops for sh7722.
Do not go beyond ARRAY_SIZE of onchip_ops
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7722.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c index ae78efd0582d..c090c9a373f6 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7722.c | |||
@@ -883,7 +883,7 @@ struct clk_ops *onchip_ops[] = { | |||
883 | void __init | 883 | void __init |
884 | arch_init_clk_ops(struct clk_ops **ops, int type) | 884 | arch_init_clk_ops(struct clk_ops **ops, int type) |
885 | { | 885 | { |
886 | BUG_ON(type < 0 || type > ARRAY_SIZE(onchip_ops)); | 886 | BUG_ON(type < 0 || type >= ARRAY_SIZE(onchip_ops)); |
887 | *ops = onchip_ops[type]; | 887 | *ops = onchip_ops[type]; |
888 | } | 888 | } |
889 | 889 | ||