mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 12:16:42 +07:00
net: davinci_emac: Free clock after checking the frequency
We only use clk_get() to get the frequency, the rest is done by the runtime PM calls. Let's free the clock too. Cc: Brian Hutchinson <b.hutchman@gmail.com> Cc: Felipe Balbi <balbi@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b5133e7a98
commit
0f5372731d
@ -1894,6 +1894,7 @@ static int davinci_emac_probe(struct platform_device *pdev)
|
||||
return -EBUSY;
|
||||
}
|
||||
emac_bus_frequency = clk_get_rate(emac_clk);
|
||||
devm_clk_put(&pdev->dev, emac_clk);
|
||||
|
||||
/* TODO: Probe PHY here if possible */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user