diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2022-11-09 00:58:27 +0300 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2022-12-02 02:26:37 +0300 |
commit | 3198106a99e73dbc4c02bd5128cec0997c73af82 (patch) | |
tree | ad16fcf474cefa9a47a390dd82fdde2cebef45c4 /drivers/clk | |
parent | d676d3a3717cf726d3affedbe5ba98fc4ccad7b3 (diff) | |
download | linux-3198106a99e73dbc4c02bd5128cec0997c73af82.tar.xz |
clk: qcom: krait-cc: use devm variant for clk notifier register
Use devm variant for clk notifier register and correctly handle free
resource on driver remove.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221108215827.30475-1-ansuelsmth@gmail.com
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/qcom/krait-cc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/qcom/krait-cc.c b/drivers/clk/qcom/krait-cc.c index cfd961d5cc45..7926b0936dc9 100644 --- a/drivers/clk/qcom/krait-cc.c +++ b/drivers/clk/qcom/krait-cc.c @@ -62,7 +62,7 @@ static int krait_notifier_register(struct device *dev, struct clk *clk, int ret = 0; mux->clk_nb.notifier_call = krait_notifier_cb; - ret = clk_notifier_register(clk, &mux->clk_nb); + ret = devm_clk_notifier_register(dev, clk, &mux->clk_nb); if (ret) dev_err(dev, "failed to register clock notifier: %d\n", ret); |