clk: axi-clkgen: Use managed `of_clk_add_hw_provider()`
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 10 Apr 2023 01:44:52 +0000 (18:44 -0700)
committerStephen Boyd <sboyd@kernel.org>
Mon, 10 Apr 2023 19:45:12 +0000 (12:45 -0700)
commita301528f79d1ec27cd34122d655e0200a950f960
tree2a25c16cc81f6316672993b2038b61e748306673
parentce1c5f840fb7cf080523eb94396f0182ab74ac4f
clk: axi-clkgen: 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>
Link: https://lore.kernel.org/r/20230410014502.27929-1-lars@metafoo.de
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-axi-clkgen.c