summaryrefslogtreecommitdiff
path: root/drivers/soc/imx/gpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/soc/imx/gpc.c')
-rw-r--r--drivers/soc/imx/gpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/imx/gpc.c b/drivers/soc/imx/gpc.c
index 7e6a672bf5f4..ba6e7ab2c240 100644
--- a/drivers/soc/imx/gpc.c
+++ b/drivers/soc/imx/gpc.c
@@ -413,7 +413,7 @@ static int imx_gpc_probe(struct platform_device *pdev)
of_node_put(np);
return ret;
}
- if (domain_index >= ARRAY_SIZE(imx_gpc_domains))
+ if (domain_index >= of_id_data->num_domains)
continue;
domain = &imx_gpc_domains[domain_index];