]> git.ipfire.org Git - thirdparty/linux.git/commit
soc/tegra: pmc: Use devm_clk_notifier_register()
authorThierry Reding <treding@nvidia.com>
Fri, 9 Jun 2023 14:42:25 +0000 (16:42 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 9 Jun 2023 14:56:58 +0000 (16:56 +0200)
commitc954cd7ad041251d903707c463a2c4d6cc30e5ae
tree955506517f7518711a86c1d11c5f7615dc42ce42
parentbae9fb2d39b73822379b9bda02f3b9335fc77e13
soc/tegra: pmc: Use devm_clk_notifier_register()

Move to the device-managed version of clk_notifier_register() to remove
the need for manual cleanup. This fixes a potential issue where the
clock notifier would stick around after the driver fails to probe at a
later point.

Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c