[PATCH] i2c: imx_lpi2c: Fix misuse the IS_ENABLED for DM clock

Heiko Schocher hs at denx.de
Tue Apr 11 13:00:47 CEST 2023


Hello Peng,

On 06.04.23 12:26, 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(-)


Applied to u-boot-i2c.git master

Thanks!

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