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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Jan 2020 11:21:39 +0000 (12:21 +0100)
commit2071f6b8cefba73211f9783625a2dde6008f1b0f
tree5167f778b8994fac15b63c9094cc102c7a6aae09
parent002352747481b28287e0285fe95b31206391460c
clk: Move clk_core_reparent_orphans() under CONFIG_OF

[ Upstream commit c771256ee7a03d3fb3c0443319ae6249c455849d ]

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: 66d9506440bb ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/clk.c