diff options
author | Tom Rini <trini@konsulko.com> | 2022-01-18 13:38:00 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-18 13:38:00 -0500 |
commit | 60435ca4da823e40c4a9c7b4eda3c0b68966f9ee (patch) | |
tree | 872c41b62af1a07287b695808c6207f36f29ec53 /include | |
parent | e559193968f213f15f1522315e5937ed52c6d444 (diff) | |
download | u-boot-60435ca4da823e40c4a9c7b4eda3c0b68966f9ee.tar.gz u-boot-60435ca4da823e40c4a9c7b4eda3c0b68966f9ee.tar.bz2 u-boot-60435ca4da823e40c4a9c7b4eda3c0b68966f9ee.zip |
miiphy.h: Remove CONFIG_DM_xxx guards
Function prototypes must not be guarded with ifdef tests. Doing so
prevents us from doing:
if (CONFIG_IS_ENABLED(FOO))
func();
as that results in a warning when CONFIG_FOO is not enabled.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/miiphy.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/miiphy.h b/include/miiphy.h index 8b77bac01e..77a0035958 100644 --- a/include/miiphy.h +++ b/include/miiphy.h @@ -126,8 +126,6 @@ int bb_miiphy_write(struct mii_dev *miidev, int addr, int devad, int reg, #define ESTATUS_1000XF 0x8000 #define ESTATUS_1000XH 0x4000 -#ifdef CONFIG_DM_MDIO - /** * struct mdio_perdev_priv - Per-device class data for MDIO DM * @@ -185,10 +183,6 @@ struct phy_device *dm_mdio_phy_connect(struct udevice *mdiodev, int phyaddr, */ struct phy_device *dm_eth_phy_connect(struct udevice *ethdev); -#endif - -#ifdef CONFIG_DM_MDIO_MUX - /* indicates none of the child buses is selected */ #define MDIO_MUX_SELECT_NONE -1 @@ -206,5 +200,3 @@ struct mdio_mux_ops { #define mdio_mux_get_ops(dev) ((struct mdio_mux_ops *)(dev)->driver->ops) #endif - -#endif |