aboutsummaryrefslogtreecommitdiff
path: root/clocks.c
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2016-02-18 16:44:55 +0000
committerDaniel Lezcano <daniel.lezcano@linaro.org>2016-02-18 16:47:34 +0000
commitb4eec7eb5e0408ecc0e450025dbb5ab3fe6cbc5c (patch)
treeef61a1289d04949023979220791302ec0655bdc4 /clocks.c
parent30f014726a0614f0e331c67604729723306007e1 (diff)
downloadpowerdebug-b4eec7eb5e0408ecc0e450025dbb5ab3fe6cbc5c.tar.gz
Pass options to init functions.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'clocks.c')
-rw-r--r--clocks.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/clocks.c b/clocks.c
index c751ec1..b57de3d 100644
--- a/clocks.c
+++ b/clocks.c
@@ -447,10 +447,13 @@ static struct display_ops clock_ops = {
/*
* Initialize the clock framework
*/
-int clock_init(void)
+int clock_init(struct powerdebug_options *options)
{
char clk_dir_path[MAX+1][PATH_MAX];
+ if (!(options->flags & CLOCK_OPTION))
+ return 0;
+
if (locate_debugfs(clk_dir_path[CCF]) || locate_debugfs(clk_dir_path[OCF]))
return -1;