OSDN Git Service

clk: Provide dummy of_clk_get_from_provider() for compile-testing
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 28 Apr 2017 13:08:53 +0000 (15:08 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 2 Jun 2017 17:51:34 +0000 (10:51 -0700)
When CONFIG_ON=n, dummies are provided for of_clk_get() and
of_clk_get_by_name(), but not for of_clk_get_from_provider().

Provide a dummy for the latter, to improve the ability to do
compile-testing.  This requires removing the existing dummy in the
Lantiq clock code.

Fixes: 766e6a4ec602d0c1 ("clk: add DT clock binding support")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Thomas Langer <thomas.langer@intel.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
arch/mips/lantiq/clk.c
include/linux/clk.h

index 149f051..a263d1b 100644 (file)
@@ -160,11 +160,6 @@ void clk_deactivate(struct clk *clk)
 }
 EXPORT_SYMBOL(clk_deactivate);
 
-struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec)
-{
-       return NULL;
-}
-
 static inline u32 get_counter_resolution(void)
 {
        u32 res;
index 024cd07..e790d19 100644 (file)
@@ -539,6 +539,10 @@ static inline struct clk *of_clk_get_by_name(struct device_node *np,
 {
        return ERR_PTR(-ENOENT);
 }
+static inline struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec)
+{
+       return ERR_PTR(-ENOENT);
+}
 #endif
 
 #endif