summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-fixed.c
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2017-03-14 08:37:35 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-30 08:23:21 +0200
commit6b16f5961f17c9e61f719e0e6f6d34c5485d73fa (patch)
treed696ecd1956bac93846d68f3a654848e55be2631 /drivers/clk/clk-fixed.c
parentdc247478c67d663b6e3f5ce639e06b23b54e6aff (diff)
downloadbarebox-6b16f5961f17c9e61f719e0e6f6d34c5485d73fa.tar.gz
barebox-6b16f5961f17c9e61f719e0e6f6d34c5485d73fa.tar.xz
clk: No-op CLK_OF_DECLARE if not enabled
Instead of wrapping each defenition of CLK_OF_DECLARE hook with preprocessor guards, change the definition of CLK_OF_DECLARE to expand into no-op if COMMON_CLK_OF_PROVIDER is not enabled. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clk/clk-fixed.c')
-rw-r--r--drivers/clk/clk-fixed.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/clk/clk-fixed.c b/drivers/clk/clk-fixed.c
index f0f7fbaed5..57bf36b39e 100644
--- a/drivers/clk/clk-fixed.c
+++ b/drivers/clk/clk-fixed.c
@@ -55,7 +55,6 @@ struct clk *clk_fixed(const char *name, int rate)
return &fix->clk;
}
-#if defined(CONFIG_COMMON_CLK_OF_PROVIDER)
/**
* of_fixed_clk_setup() - Setup function for simple fixed rate clock
*/
@@ -76,4 +75,3 @@ static int of_fixed_clk_setup(struct device_node *node)
return of_clk_add_provider(node, of_clk_src_simple_get, clk);
}
CLK_OF_DECLARE(fixed_clk, "fixed-clock", of_fixed_clk_setup);
-#endif