From: Michal Simek Date: Wed, 9 Mar 2022 09:05:44 +0000 (+0100) Subject: generic-phy: s/CONFIG_PHY/CONFIG_IS_ENABLED(PHY)/ X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=e81782ab883552dd48f5109ba41327b879a92498;p=u-boot.git generic-phy: s/CONFIG_PHY/CONFIG_IS_ENABLED(PHY)/ Allow to disable PHY driver in SPL because it checks the CONFIG_SPL_PHY variable for SPL builds. The same change was done for usb by commit fd09c205fc57 ("usb: s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/"). Signed-off-by: Michal Simek --- diff --git a/include/generic-phy.h b/include/generic-phy.h index ff48b37081..d40ce589b6 100644 --- a/include/generic-phy.h +++ b/include/generic-phy.h @@ -155,7 +155,7 @@ struct phy_bulk { unsigned int count; }; -#ifdef CONFIG_PHY +#if CONFIG_IS_ENABLED(PHY) /** * generic_phy_init() - initialize the PHY port