Re: [PATCH 2/2] clk: exynos-audss: Fix memory leak on driver unbind or probe failure

2015-01-15 Thread Krzysztof Kozlowski
On śro, 2015-01-14 at 14:25 -0800, Mike Turquette wrote: Quoting Stephen Boyd (2015-01-08 13:23:13) On 01/05/2015 01:52 AM, Krzysztof Kozlowski wrote: The memory allocated by basic clock divider/gate/mux (struct clk_gate, clk_divider and clk_mux) was leaking. During driver unbind or probe

Re: [PATCH 2/2] clk: exynos-audss: Fix memory leak on driver unbind or probe failure

2015-01-14 Thread Mike Turquette
Quoting Stephen Boyd (2015-01-08 13:23:13) On 01/05/2015 01:52 AM, Krzysztof Kozlowski wrote: 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

Re: [PATCH 2/2] clk: exynos-audss: Fix memory leak on driver unbind or probe failure

2015-01-08 Thread Stephen Boyd
On 01/05/2015 01:52 AM, Krzysztof Kozlowski wrote: 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

[PATCH 2/2] clk: exynos-audss: Fix memory leak on driver unbind or probe failure

2015-01-05 Thread Krzysztof Kozlowski
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