Re: [PATCH] clk: scmi: use devm_of_clk_add_hw_provider() API and drop scmi_clocks_remove
From: Sudeep Holla
Date: Tue Mar 20 2018 - 10:43:00 EST
Hi Stephen,
On 20/03/18 12:11, Sudeep Holla wrote:
> 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>
> ---
> drivers/clk/clk-scmi.c | 12 ++----------
> 1 file changed, 2 insertions(+), 10 deletions(-)
>
Sorry I forgot to mention before, if this looks fine, please
provide ack so that I can take it via ARM Soc.
--
Regards,
Sudeep