Re: [PATCH] clk: scmi: use devm_of_clk_add_hw_provider() API and drop scmi_clocks_remove
From: Stephen Boyd
Date: Tue Mar 20 2018 - 12:22:59 EST
Quoting Sudeep Holla (2018-03-20 05:11:07)
> Commit aa795c41d9cd ("clk: Add devm_of_clk_add_hw_provider()/del_provider()
> APIs") adds devm_of_clk_add_hw_provider which takes care of deleting the
> clock provider when the clock providers device is removed.
>
> This patch makes use of devm_of_clk_add_hw_provider() instead of
> of_clk_add_hw_provider() so that we can eliminate the need of explicit
> scmi_clocks_remove for just doing of_clk_del_provider()
>
> Signed-off-by: Sudeep Holla <sudeep.holla@xxxxxxx>
> ---
Acked-by: Stephen Boyd <sboyd@xxxxxxxxxx>