]> git.baikalelectronics.ru Git - kernel.git/commit
interconnect: imx: fix max_node_id
authorPeng Fan <peng.fan@nxp.com>
Sun, 3 Jul 2022 09:11:26 +0000 (17:11 +0800)
committerGeorgi Djakov <djakov@kernel.org>
Fri, 15 Jul 2022 14:53:04 +0000 (17:53 +0300)
commita7bb05d3e4b20765e460e12673a7cc70061b993d
tree2d0aef4c3cafb00b26db176c93d610570ac0498c
parentcbb86f5b903187b78bd1f23514f3429dc1b549a1
interconnect: imx: fix max_node_id

max_node_id not equal to the ARRAY_SIZE of node array, need increase 1,
otherwise xlate will fail for the last entry. And rename max_node_id
to num_nodes to reflect the reality.

Fixes: b6d08f3226570 ("interconnect: Add imx core driver")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20220703091132.1412063-5-peng.fan@oss.nxp.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/imx/imx.c