i2c: imx_lpi2c: Fix misuse the IS_ENABLED for DM clock
authorYe Li <ye.li@nxp.com>
Thu, 6 Apr 2023 10:26:35 +0000 (18:26 +0800)
committerHeiko Schocher <hs@denx.de>
Tue, 11 Apr 2023 04:45:29 +0000 (06:45 +0200)
commitb4004c2949732ad8a6cb42f27a1c472d39216b72
treed4851b76534ddbca8110d573786811e4ba6efa78
parent7f6a2e6e0f7694bf9557683db1d6ef2fc75ef1c8
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>
drivers/i2c/imx_lpi2c.c