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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
altogether.

This reverts commit 55a41677e2be90bbcaaa93cc541ead71a1e632d6.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
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
-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux