diff options
author | Alex Elder <elder@linaro.org> | 2014-03-21 07:43:56 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-03-24 20:10:07 -0400 |
commit | c646cbf10fb3347ecda290dfce96b813a423ca07 (patch) | |
tree | 499a4c533b84bb9a1066c6c2a428f5db1fe38419 /drivers/clk | |
parent | afbd1a0c309e3d5cb581a3f7c879be97855fe72f (diff) |
clk: support hardware-specific debugfs entries
Add a new clk_ops->debug_init method to allow a clock hardware
driver to populate the clock's debugfs directory with entries
beyond those common for every clock.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index fb3c40b4fbe2..1fbcb2b107e7 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c | |||
@@ -277,6 +277,10 @@ static int clk_debug_create_one(struct clk *clk, struct dentry *pdentry) | |||
277 | if (!d) | 277 | if (!d) |
278 | goto err_out; | 278 | goto err_out; |
279 | 279 | ||
280 | if (clk->ops->debug_init) | ||
281 | if (clk->ops->debug_init(clk->hw, clk->dentry)) | ||
282 | goto err_out; | ||
283 | |||
280 | ret = 0; | 284 | ret = 0; |
281 | goto out; | 285 | goto out; |
282 | 286 | ||