Browse Source

clk: Add missing clk_get_sys() stub

When compiling with the COMPILE_TEST option set, the clps711x does not
compile because of the clk_get_sys() noop stub missing.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Michael Turquette <mturquette@baylibre.com>
Daniel Lezcano 9 years ago
parent
commit
b81ea96870
1 changed files with 4 additions and 0 deletions
  1. 4 0
      include/linux/clk.h

+ 4 - 0
include/linux/clk.h

@@ -461,6 +461,10 @@ static inline struct clk *clk_get_parent(struct clk *clk)
 	return NULL;
 }
 
+static inline struct clk *clk_get_sys(const char *dev_id, const char *con_id)
+{
+	return NULL;
+}
 #endif
 
 /* clk_prepare_enable helps cases using clk_enable in non-atomic context. */