diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 7f8e3354b089f..862750aea4f68 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -107,7 +107,7 @@ static int clk_procfs_stat(const char *relpath, struct stat *buf); #if !defined(CONFIG_FS_PROCFS_EXCLUDE_CLK) && defined(CONFIG_FS_PROCFS) -const struct procfs_operations clk_procfsoperations = +const struct procfs_operations g_clk_operations = { clk_procfs_open, /* open */ clk_procfs_close, /* close */ diff --git a/fs/procfs/fs_procfs.c b/fs/procfs/fs_procfs.c index 4d5af33ee28a2..e24fd7f68873f 100644 --- a/fs/procfs/fs_procfs.c +++ b/fs/procfs/fs_procfs.c @@ -52,6 +52,7 @@ * External Definitions ****************************************************************************/ +extern const struct procfs_operations g_clk_operations; extern const struct procfs_operations g_cpuinfo_operations; extern const struct procfs_operations g_cpuload_operations; extern const struct procfs_operations g_critmon_operations; @@ -97,6 +98,10 @@ static const struct procfs_entry_s g_procfs_entries[] = { "[0-9]*", &g_proc_operations, PROCFS_DIR_TYPE }, #endif +#if defined(CONFIG_CLK) && !defined(CONFIG_FS_PROCFS_EXCLUDE_CLK) + { "clk", &g_clk_operations, PROCFS_FILE_TYPE }, +#endif + #if defined(CONFIG_ARCH_HAVE_CPUINFO) && !defined(CONFIG_FS_PROCFS_EXCLUDE_CPUINFO) { "cpuinfo", &g_cpuinfo_operations, PROCFS_FILE_TYPE }, #endif