static int __init clk_proc_init(void)
{
- proc_create("clocks", 0, NULL, &proc_clk_fops);
+ proc_create("clocks", S_IFREG | S_IRUSR | S_IRGRP, NULL, &proc_clk_fops);
return 0;
}
static struct dvfs_attribute dvfs_attrs[] = {\r
/* node_name permision show_func store_func */\r
#ifdef CONFIG_RK_CLOCK_PROC\r
- __ATTR(dvfs_tree, S_IRUGO | S_IWUSR, dvfs_tree_show, dvfs_tree_store),\r
- __ATTR(avs_init, S_IRUGO | S_IWUSR, avs_init_show, avs_init_store),\r
- //__ATTR(avs_dyn, S_IRUGO | S_IWUSR, avs_dyn_show, avs_dyn_store),\r
- __ATTR(avs_now, S_IRUGO | S_IWUSR, avs_now_show, avs_now_store),\r
+ __ATTR(dvfs_tree, S_IRUSR | S_IRGRP | S_IWUSR, dvfs_tree_show, dvfs_tree_store),\r
+ __ATTR(avs_init, S_IRUSR | S_IRGRP | S_IWUSR, avs_init_show, avs_init_store),\r
+// __ATTR(avs_dyn, S_IRUSR | S_IRGRP | S_IWUSR, avs_dyn_show, avs_dyn_store),\r
+ __ATTR(avs_now, S_IRUSR | S_IRGRP | S_IWUSR, avs_now_show, avs_now_store),\r
#endif\r
};\r
\r