From: Tony Lindgren Date: Thu, 15 Jan 2015 22:45:11 +0000 (-0800) Subject: net: davinci_emac: Free clock after checking the frequency X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f5372731dc13655da9edd282437a290eaa7c258;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Felipe Balbi Signed-off-by: Tony Lindgren Signed-off-by: David S. Miller --- 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 */