]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:23:08 +0000 (16:23 +0100)
commit798a3390302d07db8a81e5035992e72731f97d5f
tree7bdbe8791eb0fe101aa7bba68df2855ad22985fd
parente978a3c3deb0bc7b3bc8a2307aadea4c3c935c78
clk: Move clk_core_reparent_orphans() under CONFIG_OF

BugLink: https://bugs.launchpad.net/bugs/1860130
[ 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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/clk/clk.c