mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-15 07:43:07 +00:00
2f3cf91693
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:
|
||
---|---|---|
.. | ||
clock_imx8mm.c | ||
clock_imx8mq.c | ||
clock_slice.c | ||
imximage-8mm-lpddr4.cfg | ||
imximage-8mn-ddr4.cfg | ||
imximage-8mn-lpddr4.cfg | ||
imximage-8mp-lpddr4.cfg | ||
imximage.cfg | ||
Kconfig | ||
lowlevel_init.S | ||
Makefile | ||
psci.c | ||
soc.c |