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>
This commit is contained in:

committed by
Mike Turquette

parent
afbd1a0c30
commit
c646cbf10f
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user