clk: qcom: rpm: Use managed `of_clk_add_hw_provider()`
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 10 Apr 2023 01:44:58 +0000 (18:44 -0700)
committerBjorn Andersson <andersson@kernel.org>
Wed, 12 Apr 2023 15:24:49 +0000 (08:24 -0700)
commitf1f67db9d64ffb85af04dbbf59e3f213fbf86add
tree116af469cd9bfd40b1924cc272a0b639932a152c
parentd75b82cff48883b5e75abfd3930afa7a148ab440
clk: qcom: rpm: Use managed `of_clk_add_hw_provider()`

Use the managed `devm_of_clk_add_hw_provider()` instead of
`of_clk_add_hw_provider()`.

This makes sure the provider gets automatically removed on unbind and
allows to completely eliminate the drivers `remove()` callback.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230410014502.27929-7-lars@metafoo.de
drivers/clk/qcom/clk-rpm.c