]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Move clk_core_reparent_orphans() under CONFIG_OF
authorOlof Johansson <olof@lixom.net>
Wed, 18 Dec 2019 17:56:21 +0000 (09:56 -0800)
committerStephen Boyd <sboyd@kernel.org>
Wed, 18 Dec 2019 18:16:30 +0000 (10:16 -0800)
commitf5b01e1f8edebffb28d9a1be9b6a6e9b8eb5f600
tree84f5f7d80ef3b666e8962ba5810db0ecc987165e
parenta93147c4dfcb7800a5e21e60cf5e8b3f5384c069
clk: Move clk_core_reparent_orphans() under CONFIG_OF

A recent addition exposed a helper that is only used for CONFIG_OF. Move
it into the CONFIG_OF zone in this file to make the compiler stop
warning about an unused function.

Fixes: b536f57ccab4 ("clk: walk orphan list on clock provider registration")
Signed-off-by: Olof Johansson <olof@lixom.net>
Link: https://lkml.kernel.org/r/20191217082501.424892072D@mail.kernel.org
[sboyd@kernel.org: "Simply" move the function instead]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c