--- a/drivers/net/phy/intel-xway.c
+++ b/drivers/net/phy/intel-xway.c
-@@ -229,6 +229,51 @@ static int xway_gphy_rgmii_init(struct p
- XWAY_MDIO_MIICTRL_TXSKEW_MASK, val);
+@@ -278,6 +278,51 @@ static int xway_gphy_init_leds(struct ph
+ return 0;
}
+#if IS_ENABLED(CONFIG_OF_MDIO)
+
static int xway_gphy_config_init(struct phy_device *phydev)
{
- int err;
-@@ -280,6 +325,7 @@ static int xway_gphy_config_init(struct
+ struct device_node *np = phydev->mdio.dev.of_node;
+@@ -299,6 +344,7 @@ static int xway_gphy_config_init(struct
if (err)
return err;