summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Boyd2016-06-29 19:54:13 +0200
committerStephen Boyd2016-06-29 19:54:13 +0200
commit5ff5ec59c4583f02e6472a9f7a967165e8b067fc (patch)
tree1321c0f06deecf19cac6a17be791334baa9735d8
parentMerge tag 'clk-renesas-for-v4.8-tag2' of git://git.kernel.org/pub/scm/linux/k... (diff)
parentclk: Provide notifier stubs when !COMMON_CLK (diff)
downloadkernel-qcow2-linux-5ff5ec59c4583f02e6472a9f7a967165e8b067fc.tar.gz
kernel-qcow2-linux-5ff5ec59c4583f02e6472a9f7a967165e8b067fc.tar.xz
kernel-qcow2-linux-5ff5ec59c4583f02e6472a9f7a967165e8b067fc.zip
Merge 'clk-notify' into clk-next
* clk-notify: clk: Provide notifier stubs when !COMMON_CLK
-rw-r--r--include/linux/clk.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h
index 0df4a51e1a78..a89ba4e7af7a 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -20,8 +20,6 @@ struct device;
struct clk;
-#ifdef CONFIG_COMMON_CLK
-
/**
* DOC: clk notifier callback types
*
@@ -78,6 +76,8 @@ struct clk_notifier_data {
unsigned long new_rate;
};
+#ifdef CONFIG_COMMON_CLK
+
/**
* clk_notifier_register: register a clock rate-change notifier callback
* @clk: clock whose rate we are interested in
@@ -140,6 +140,18 @@ bool clk_is_match(const struct clk *p, const struct clk *q);
#else
+static inline int clk_notifier_register(struct clk *clk,
+ struct notifier_block *nb)
+{
+ return -ENOTSUPP;
+}
+
+static inline int clk_notifier_unregister(struct clk *clk,
+ struct notifier_block *nb)
+{
+ return -ENOTSUPP;
+}
+
static inline long clk_get_accuracy(struct clk *clk)
{
return -ENOTSUPP;