]> git.karo-electronics.de Git - linux-beck.git/commit
clk: composite: Add unregister function
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 23 Mar 2016 16:38:24 +0000 (17:38 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 21 Apr 2016 21:43:28 +0000 (14:43 -0700)
commit92a39d9043ba5ff98adb1c31491f00c7bea5466e
tree591831d33d7b0c8181786877feae2ffcc907872f
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
clk: composite: Add unregister function

The composite clock didn't have any unregistration function, which forced
us to use clk_unregister directly on it.

While it was already not great from an API point of view, it also meant
that we were leaking the clk_composite structure allocated in
clk_register_composite.

Add a clk_unregister_composite function to fix this.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-composite.c
include/linux/clk-provider.h