diff options
author | Tony Lindgren <tony@atomide.com> | 2015-01-15 14:45:11 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-16 01:00:03 -0500 |
commit | 0f5372731dc13655da9edd282437a290eaa7c258 (patch) | |
tree | 0881f2ce67bcc751ef3f43528c0008d472b9e2a8 /drivers/net | |
parent | b5133e7a988b2cf8e1cd2b23231f36aff35ceffc (diff) | |
download | linux-0f5372731dc13655da9edd282437a290eaa7c258.tar.bz2 |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_emac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c index 5df339e9f67c..59fdcdd43ed1 100644 --- a/drivers/net/ethernet/ti/davinci_emac.c +++ b/drivers/net/ethernet/ti/davinci_emac.c @@ -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 */ |