Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit d5f3c241 authored by Will Eccles's avatar Will Eccles Committed by Robert Nelson
Browse files

cpsw: fix undefined function with PM disabled


When CONFIG_PM is not enabled, the function
davinci_mdio_update_dt_from_phymask is not defined. This patch fixes
this so that the build does not fail with CONFIG_PM disabled.

Signed-off-by: default avatarWill Eccles <will@eccles.dev>
parent bae58378
Branches
Tags 5.4.106-ti-r33
No related merge requests found
......@@ -704,6 +704,8 @@ static int davinci_mdio_runtime_resume(struct device *dev)
}
return 0;
}
#endif
static void davinci_mdio_update_dt_from_phymask(u32 phy_mask)
{
int i, len, skip;
......@@ -791,7 +793,6 @@ static void davinci_mdio_update_dt_from_phymask(u32 phy_mask)
kfree(phy_id_property);
}
}
#endif
#ifdef CONFIG_PM_SLEEP
static int davinci_mdio_suspend(struct device *dev)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment