]> git.baikalelectronics.ru Git - uboot.git/commitdiff
generic-phy: s/CONFIG_PHY/CONFIG_IS_ENABLED(PHY)/
authorMichal Simek <michal.simek@xilinx.com>
Wed, 9 Mar 2022 09:05:44 +0000 (10:05 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 22 Apr 2022 08:35:14 +0000 (10:35 +0200)
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 58f9688e55be ("usb:
s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/").

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/generic-phy.h

index ff48b3708195d8a6b925dd88641d82ed3585cabf..d40ce589b6450f6198a2f9ed1dd1bbb1c72537dc 100644 (file)
@@ -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