 +		if (ret != 0)
 +			return ret;
 +	}
++
 +	return 0;
 +}
 +

+ *
+ */
+static int litex_clk_change_value(struct clk_hw *clk_hw, u16 mask, u16 bitset,
+							  u8 clk_reg_addr)
+{
+	u16 DO_val, DI_val;
+	int ret;

+/* End of copied code */
+
+static inline struct litex_clk_device *clk_hw_to_litex_clk_device
+						(struct clk_hw *clk_hw)
+{
+	return container_of(clk_hw, struct litex_clk_device, clk_hw);
+}
+
+static inline struct litex_clk_clkout *clk_hw_to_litex_clk_clkout
+						(struct clk_hw *clk_hw)
+{
+	return container_of(clk_hw, struct litex_clk_clkout, clk_hw);
+}
