The device model device_probe() helper calls clk_set_defaults() before
invoking the driver specific probe() ops.
The call to clk_set_defaults() in gmac_rockchip_probe() re-apply same
assigned clocks. Remove the call and rely on DM core to apply assigned
clocks.
Fixes: b07911840025 ("net: gmac_rockchip: add support for px30")
Signed-off-by: Jonas Karlman <[email protected]>
---
drivers/net/gmac_rockchip.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_rockchip.c
index 2b6080dd9ee0..6396e65d9ddd 100644
--- a/drivers/net/gmac_rockchip.c
+++ b/drivers/net/gmac_rockchip.c
@@ -596,10 +596,6 @@ static int gmac_rockchip_probe(struct udevice *dev)
ulong rate;
int ret;
- ret = clk_set_defaults(dev, CLK_DEFAULTS_PRE);
- if (ret)
- debug("%s clk_set_defaults failed %d\n", __func__, ret);
-
ret = clk_get_by_index(dev, 0, &clk);
if (ret)
return ret;
--
2.55.0