commit | 725a7ac0890a8bc3ffdd0f61fb8c4256ef120f54 | [log] [tgz] |
---|---|---|
author | Ye Li <ye.li@nxp.com> | Thu Apr 06 18:26:35 2023 +0800 |
committer | Heiko Schocher <hs@denx.de> | Tue Apr 11 06:45:29 2023 +0200 |
tree | d4851b76534ddbca8110d573786811e4ba6efa78 | |
parent | 56105aa7f4548b13c5f803b948eb0014e2f7503e [diff] |
i2c: imx_lpi2c: Fix misuse the IS_ENABLED for DM clock The IS_ENABLED, which does not consider SPL build, should be replaced by CONFIG_IS_ENABLED. For the case that we only enable DM CLK for u-boot but not in SPL, the IS_ENABLED(CONFIG_CLK) still returns true, then cause clock failure. Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>