clk: scmi: use devm_of_clk_add_hw_provider() API and drop scmi_clocks_remove
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 20 Mar 2018 11:22:48 +0000 (11:22 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 20 Mar 2018 16:23:26 +0000 (16:23 +0000)
commit7f9badfceffc6d2ae331050f1cd155a633130437
treea66993d24e59816121a16ec460c8e3aef4983199
parentb5e817dcdd556da2b74c66af1cf0f44840283102
clk: scmi: use devm_of_clk_add_hw_provider() API and drop scmi_clocks_remove

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()

Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/clk/clk-scmi.c