[PATCH next 2/2] fixup! clk: implement clk_hw_reparent

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Mar 7 09:02:10 PST 2022

Revert "clk: implement clk_hw_reparent"

The implementation is faulty. In Linux, the function does accounting,
which seems not applicable to barebox and it does not do any hardware
access or set parentage, unlike the barebox port. As a previous commit
removed the sole use site of the helper to fix a bug, drop the helper

This reverts commit 55a41677e2be90bbcaaa93cc541ead71a1e632d6.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
Should result in an empty patch that can be skipped.
 include/linux/clk.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/include/linux/clk.h b/include/linux/clk.h
index ab96e36010c3..7fd835c35e51 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -241,14 +241,6 @@ int clk_hw_set_rate(struct clk_hw *hw, unsigned long rate);
 int clk_set_parent(struct clk *clk, struct clk *parent);
 int clk_hw_set_parent(struct clk_hw *hw, struct clk_hw *hwp);
-static inline void clk_hw_reparent(struct clk_hw *hw, struct clk_hw *new_parent)
-	if (!hw)
-		return;
-	clk_hw_set_parent(hw, new_parent);
  * clk_get_parent - get the parent clock source for this clock
  * @clk: clock source

More information about the barebox mailing list