@@ -8,6 +8,7 @@
#include <linux/phy.h>
#include <linux/phy/phy.h>
#include <linux/property.h>
+#include <linux/regulator/consumer.h>
#include "stmmac.h"
#include "stmmac_platform.h"
@@ -692,6 +693,10 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
if (ret)
goto out_config_dt;
+ ret = devm_regulator_get_enable_optional(dev, "phy");
+ if (ret < 0 && ret != -ENODEV)
+ goto out_config_dt;
+
ethqos->serdes_phy = devm_phy_optional_get(dev, "serdes");
if (IS_ERR(ethqos->serdes_phy)) {
ret = PTR_ERR(ethqos->serdes_phy);