clk: Introduce optional unprepare_unused callback
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Mar 2013 19:26:04 +0000 (20:26 +0100)
committerMike Turquette <mturquette@linaro.org>
Tue, 19 Mar 2013 19:58:43 +0000 (12:58 -0700)
commit3cc8247f1dce79511de8bf0f69ab02a46cc315b7
tree98b33064f74afe802360f3012dc12bf2e49c1781
parent1c155b3dfe08351f5fc811062648969f1ba7af53
clk: Introduce optional unprepare_unused callback

An unprepare_unused callback is introduced due to the same reasons to
why the disable_unused callback was added.

During the clk_disable_unused sequence, those clk_hw that needs specific
treatment with regards to being unprepared, shall implement the
unprepare_unused callback.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c
include/linux/clk-provider.h