summaryrefslogtreecommitdiffstats
path: root/drivers/clk/ux500/reset-prcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/ux500/reset-prcc.c')
-rw-r--r--drivers/clk/ux500/reset-prcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/ux500/reset-prcc.c b/drivers/clk/ux500/reset-prcc.c
index fcd5d042806a..f7e48941fbc7 100644
--- a/drivers/clk/ux500/reset-prcc.c
+++ b/drivers/clk/ux500/reset-prcc.c
@@ -58,7 +58,7 @@ static void __iomem *u8500_prcc_reset_base(struct u8500_prcc_reset *ur,
prcc_num = id / PRCC_PERIPHS_PER_CLUSTER;
index = prcc_num_to_index(prcc_num);
- if (index > ARRAY_SIZE(ur->base))
+ if (index >= ARRAY_SIZE(ur->base))
return NULL;
return ur->base[index];