Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 365301
b: refs/heads/master
c: 4cb24e6
h: refs/heads/master
i:
  365299: 56ab4f4
v: v3
  • Loading branch information
Axel Lin authored and Mike Turquette committed Apr 9, 2013
1 parent ea4f255 commit a5c0672
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a68de8e4ab2756d8e125cf327f044c895b6a6b3d
refs/heads/master: 4cb24e68a5af427651b3529cd3fe382fb9ba1544
4 changes: 2 additions & 2 deletions trunk/drivers/clk/mvebu/clk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ static u32 __init armada_370_get_cpu_freq(void __iomem *sar)

cpu_freq_select = ((readl(sar) >> SARL_A370_PCLK_FREQ_OPT) &
SARL_A370_PCLK_FREQ_OPT_MASK);
if (cpu_freq_select > ARRAY_SIZE(armada_370_cpu_frequencies)) {
if (cpu_freq_select >= ARRAY_SIZE(armada_370_cpu_frequencies)) {
pr_err("CPU freq select unsuported %d\n", cpu_freq_select);
cpu_freq = 0;
} else
Expand Down Expand Up @@ -278,7 +278,7 @@ static u32 __init armada_xp_get_cpu_freq(void __iomem *sar)
cpu_freq_select |= (((readl(sar+4) >> SARH_AXP_PCLK_FREQ_OPT) &
SARH_AXP_PCLK_FREQ_OPT_MASK)
<< SARH_AXP_PCLK_FREQ_OPT_SHIFT);
if (cpu_freq_select > ARRAY_SIZE(armada_xp_cpu_frequencies)) {
if (cpu_freq_select >= ARRAY_SIZE(armada_xp_cpu_frequencies)) {
pr_err("CPU freq select unsuported: %d\n", cpu_freq_select);
cpu_freq = 0;
} else
Expand Down

0 comments on commit a5c0672

Please sign in to comment.