clk: take the prepare lock out of clk_core_set_parent
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 1 Dec 2017 21:51:52 +0000 (22:51 +0100)
committerMichael Turquette <mturquette@baylibre.com>
Wed, 20 Dec 2017 00:17:37 +0000 (16:17 -0800)
commit91baa9ffe6d4e8191ef55b4ece3e556294141515
treeae5813dd90f18de807718d52cd141872412679af
parent56e7ceddbeb812a6f79f37523eb4e6e4620f4416
clk: take the prepare lock out of clk_core_set_parent

Rework set_parent core function so it can be called when the prepare lock
is already held by the caller.

This rework is done to ease the integration of the "protected" clock
functionality.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Tested-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/20171201215200.23523-3-jbrunet@baylibre.com
drivers/clk/clk.c