From b4eec7eb5e0408ecc0e450025dbb5ab3fe6cbc5c Mon Sep 17 00:00:00 2001 From: Daniel Lezcano Date: Thu, 18 Feb 2016 16:44:55 +0000 Subject: Pass options to init functions. Signed-off-by: Daniel Lezcano --- clocks.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'clocks.c') 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; -- cgit v1.2.3