Re: [PATCH v2] clk: hisilicon: Free clk_data and unmap region obtained by of_iomap

2020-11-10 Thread Dongjiu Geng
On 2020/11/10 1:54, Markus Elfring wrote: > … >> +++ b/drivers/clk/hisilicon/clk-hi3620.c > … >> @@ -478,6 +478,10 @@ static void __init hi3620_mmc_clk_init(struct >> device_node *node) >> >> clk_data->clk_num = num; >> of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); >>

Re: [PATCH V2] clk: hisilicon: Free clk_data and unmap region obtained by of_iomap

2020-11-09 Thread Dongjiu Geng
add Markus On 2020/11/10 2:09, Dongjiu Geng wrote: > Free memory mapping and free clk_data, if clock initialization > is not successful. > > Fixes: 75af25f581b1 ("clk: hisi: remove static variable") > Fixes: 62ac983b6141 ("clk: hisilicon: add hi3620_mmc_clks") > Signed-off-by: Dongjiu Geng >

[PATCH V2] clk: hisilicon: Free clk_data and unmap region obtained by of_iomap

2020-11-09 Thread Dongjiu Geng
Free memory mapping and free clk_data, if clock initialization is not successful. Fixes: 75af25f581b1 ("clk: hisi: remove static variable") Fixes: 62ac983b6141 ("clk: hisilicon: add hi3620_mmc_clks") Signed-off-by: Dongjiu Geng --- drivers/clk/hisilicon/clk-hi3620.c | 8 ++--