16 #include <linux/kernel.h>
17 #include <linux/module.h>
27 static struct dentry *jz4740_clock_debugfs;
50 jz4740_clock_debugfs_show_enabled,
51 jz4740_clock_debugfs_set_enabled,
54 static int jz4740_clock_debugfs_show_rate(
void *data,
uint64_t *value)
56 struct clk *clk =
data;
63 jz4740_clock_debugfs_show_rate,
69 if (!jz4740_clock_debugfs)
74 &jz4740_clock_debugfs_ops_rate);
76 &jz4740_clock_debugfs_ops_enabled);
79 char parent_path[100];
90 if (clk->debugfs_parent_entry)
94 char parent_path[100];
100 clk->debugfs_parent_entry =
NULL;
107 if (IS_ERR(jz4740_clock_debugfs))
108 jz4740_clock_debugfs =
NULL;