clk: meson: use devm_of_clk_add_hw_provider
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 12 Feb 2018 14:58:29 +0000 (15:58 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 13 Mar 2018 09:03:57 +0000 (10:03 +0100)
commit332b32a23225e01cdfac4fb6cb1c76553f906cb5
tree370cff15e6bea757c7bcc489b46c36ba27e19b8b
parent323346d31d68542b133088c7fe043c234f26eee4
clk: meson: use devm_of_clk_add_hw_provider

There is no remove callbacks in meson's clock controllers and
of_clk_del_provider is never called if of_clk_add_hw_provider has been
executed, introducing a potential memory leak.
Fixing this by the using the devm variant.

In reality, the leak would never happen since these controllers are
never unloaded once in use ... still, this is worth cleaning.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/clk/meson/axg.c
drivers/clk/meson/gxbb.c
drivers/clk/meson/meson8b.c