]> Pileus Git - ~andy/linux/commitdiff
clk: core: remove dead code paths
authorMike Turquette <mturquette@linaro.org>
Mon, 26 Mar 2012 18:53:47 +0000 (11:53 -0700)
committerMike Turquette <mturquette@linaro.org>
Tue, 24 Apr 2012 23:37:37 +0000 (16:37 -0700)
Some static inline dummy functions were left over from before the clock
core was consolidated from several C files down to one.  Remove them.

Reported-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c

index 3ed36d3056de0a4a9e932ac50e778c9ae6d82ff9..4daacf5783aabf2b28ef33c8514e6abbb6a05491 100644 (file)
@@ -194,7 +194,7 @@ static int __init clk_debug_init(void)
 late_initcall(clk_debug_init);
 #else
 static inline int clk_debug_register(struct clk *clk) { return 0; }
-#endif /* CONFIG_COMMON_CLK_DEBUG */
+#endif
 
 #ifdef CONFIG_COMMON_CLK_DISABLE_UNUSED
 /* caller must hold prepare_lock */
@@ -246,9 +246,7 @@ static int clk_disable_unused(void)
        return 0;
 }
 late_initcall(clk_disable_unused);
-#else
-static inline int clk_disable_unused(struct clk *clk) { return 0; }
-#endif /* CONFIG_COMMON_CLK_DISABLE_UNUSED */
+#endif
 
 /***    helper functions   ***/