diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2023-03-22 15:42:05 +0100 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2023-03-30 13:47:04 +0200 |
commit | 2f3cf91693796a7be6de18a2f99f46c03ef2a9c6 (patch) | |
tree | 3305bb49c8bfc6ce16073481c10f4af6829e28be /drivers/ddr/imx/imx8m | |
parent | 9098facd215ba19a36df7f42c52f84038dc5de92 (diff) |
ARM: imx: imx8mp: fix enable_i2c_clk
In order for i2c_num==4 and 5 to stay invalid for non-imx8mp SOCs, the
i2c_ccgr[] array must be sized by the number of initializers present,
not with a hard-coded 6 which would implicitly initialize the last two
elements with zeroes.
Also, the bounds check is off-by-one.
Fixes: c92c3a4453b8 "ARM: imx: imx8mp: Enable support for i2c5 and i2c6 on i.MX8MP"
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Diffstat (limited to 'drivers/ddr/imx/imx8m')
0 files changed, 0 insertions, 0 deletions