Quoting Christophe JAILLET (2024-10-25 08:46:08) > If an error occurs after a successful mtk_alloc_clk_data(), > mtk_free_clk_data() should be called, as already done in the .remove() > function. > > Switch to mtk_devm_alloc_clk_data() in order to fix the memory leak in the > probe function, and simplify the remove function. > > Fixes: 43c04ed79189 ("clk: mediatek: Add drivers for MediaTek MT6735 main clock and reset drivers") > Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> > --- Applied to clk-next