[PATCH 36/41] i2c: imx_lpi2c: Fix misuse the IS_ENABLED for DM clock
Heiko Schocher
hs at denx.de
Mon Jan 23 15:44:59 CET 2023
Hello Peng Fan,
On 23.01.23 10:16, Peng Fan (OSS) wrote:
> From: Ye Li <ye.li at nxp.com>
>
> 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 at nxp.com>
> Signed-off-by: Ye Li <ye.li at nxp.com>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> ---
> drivers/i2c/imx_lpi2c.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks!
Reviewed-by: Heiko Schocher <hs at denx.de>
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de
More information about the U-Boot
mailing list