]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Add clk_unregister_{divider, gate, mux} to close memory leak
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 5 Jan 2015 09:52:40 +0000 (10:52 +0100)
committerMichael Turquette <mturquette@linaro.org>
Sat, 17 Jan 2015 21:52:41 +0000 (13:52 -0800)
commit914b22da2e2d65bf13c3a80f3f7176e3f1e6e373
treec9e503e37f84172b5184ebe0dd62d2ad8ab62462
parentb20b3cc1cdf54db24c4b1f3a38cffa58cd84df88
clk: Add clk_unregister_{divider, gate, mux} to close memory leak

The common clk_register_{divider,gate,mux} functions allocated memory
for internal data which wasn't freed anywhere. Drivers using these
helpers could only unregister clocks but the memory would still leak.

Add corresponding unregister functions which will release all resources.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/clk-divider.c
drivers/clk/clk-gate.c
drivers/clk/clk-mux.c
include/linux/clk-provider.h