aboutsummaryrefslogtreecommitdiff
path: root/include/generic-phy.h
diff options
context:
space:
mode:
authorMichal Simek2022-03-09 10:05:44 +0100
committerMarek Vasut2022-04-22 10:35:14 +0200
commite81782ab883552dd48f5109ba41327b879a92498 (patch)
tree50d7182e1a70fbf18aebf32363217758b8bf184a /include/generic-phy.h
parent570eaadac05c131288335248e4611e663b85c278 (diff)
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 <michal.simek@xilinx.com>
Diffstat (limited to 'include/generic-phy.h')
-rw-r--r--include/generic-phy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/generic-phy.h b/include/generic-phy.h
index ff48b370819..d40ce589b64 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