diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2020-10-21 19:38:47 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2020-11-14 23:58:31 +0300 |
commit | e6fb7aee486c7fbd4d94f4894feaa6f0424c1740 (patch) | |
tree | 3473141809e3725c5df4dc846acd3c1e07622e99 /include/linux/clk.h | |
parent | 6d30d50d037dfa092f9d5d1fffa348ab4abb7163 (diff) | |
download | linux-e6fb7aee486c7fbd4d94f4894feaa6f0424c1740.tar.xz |
clk: meson: g12: use devm variant to register notifiers
Until now, nothing was done to unregister the dvfs clock notifiers of the
Amlogic g12 SoC family. This is not great but this driver was not really
expected to be unloaded. With the ongoing effort to build everything as
module for this platform, this needs to be cleanly handled.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20201021163847.595189-3-jbrunet@baylibre.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'include/linux/clk.h')
-rw-r--r-- | include/linux/clk.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index f53afdf8198b..4ac766dc3daf 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -117,7 +117,8 @@ int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb); * * Returns 0 on success, -EERROR otherwise */ -int devm_clk_notifier_register(struct device *dev, struct clk *clk, struct notifier_block *nb); +int devm_clk_notifier_register(struct device *dev, struct clk *clk, + struct notifier_block *nb); /** * clk_get_accuracy - obtain the clock accuracy in ppb (parts per billion) @@ -196,6 +197,13 @@ static inline int clk_notifier_unregister(struct clk *clk, return -ENOTSUPP; } +static inline int devm_clk_notifier_register(struct device *dev, + struct clk *clk, + struct notifier_block *nb) +{ + return -ENOTSUPP; +} + static inline long clk_get_accuracy(struct clk *clk) { return -ENOTSUPP; |