aboutsummaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2013-09-12 18:07:34 -0500
committerAlex Elder <elder@linaro.org>2014-03-31 08:01:13 -0500
commitca2003f784431a1077e36d20caece3d0dea00e78 (patch)
tree9ba8d349c1477833f55c70c8fc88ba59c8c5b5c4 /drivers/clk
parent59c03da785f7b07b8c2e19f489451608f51e6225 (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>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index c42e608af6b..92760b12769 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)
if (!d)
goto err_out;
+ if (clk->ops->debug_init)
+ if (clk->ops->debug_init(clk->hw, clk->dentry))
+ goto err_out;
+
ret = 0;
goto out;