From: Krzysztof Kozlowski Date: Mon, 5 Jan 2015 09:52:41 +0000 (+0100) Subject: clk: exynos-audss: Fix memory leak on driver unbind or probe failure X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~17^2~13^2~46 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27c76c43623fe835a2b652228363ed108373609d;p=pandora-kernel.git clk: exynos-audss: Fix memory leak on driver unbind or probe failure The memory allocated by basic clock divider/gate/mux (struct clk_gate, clk_divider and clk_mux) was leaking. During driver unbind or probe failure the driver only unregistered the clocks. Use clk_unregister_{gate,divider,mux} to release all resources. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Stephen Boyd Signed-off-by: Michael Turquette --- Reading git-diff-tree failed