Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 7537/1: clk: Fix release in devm_clk_put()

Surprisingly devres_destroy() doesn't call the destructor for the
resource it is destroying, use the newly added devres_release() instead
to fix this.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Mark Brown and committed by
Russell King
20332ff3 8ef997b6

+1 -1
+1 -1
drivers/clk/clk-devres.c
··· 48 48 { 49 49 int ret; 50 50 51 - ret = devres_destroy(dev, devm_clk_release, devm_clk_match, clk); 51 + ret = devres_release(dev, devm_clk_release, devm_clk_match, clk); 52 52 53 53 WARN_ON(ret); 54 54 }