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 fd09c205fc57 ("usb:
s/CONFIG_DM_USB/CONFIG_IS_ENABLED(DM_USB)/").

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

index ff48b37..d40ce58 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