\r
static struct dvfs_attribute dvfs_attrs[] = {\r
/* node_name permision show_func store_func */\r
-#ifdef CONFIG_RK_DVFS_TREE_DBG\r
__ATTR(dvfs_tree, S_IRUGO | S_IWUSR, dvfs_tree_show, dvfs_tree_store),\r
-#endif\r
-#ifdef CONFIG_RK_AVS_DBG\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_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
-#endif\r
};\r
\r
static int __init dvfs_init(void)\r
struct clk_node *dvfs_clk = clk_get_dvfs_info(clk);\r
if (IS_ERR_OR_NULL(dvfs_clk)){\r
DVFS_ERR("%s %s get dvfs_clk err\n", __func__, clk->name);\r
- return ;\r
+ return -1;\r
}\r
dvfs_clk->clk_dvfs_target = clk_dvfs_target;\r
}\r
\r
static struct dvfs_attribute dvfs_attrs[] = {\r
/* node_name permision show_func store_func */\r
-#ifdef CONFIG_RK_DVFS_TREE_DBG\r
__ATTR(dvfs_tree, S_IRUGO | S_IWUSR, dvfs_tree_show, dvfs_tree_store),\r
-#endif\r
-#ifdef CONFIG_RK_AVS_DBG\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_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
-#endif\r
};\r
\r
static int __init dvfs_init(void)\r
depends on REGULATOR&&CPU_FREQ
default y
-config RK_DVFS_TREE_DBG
- bool "Enable dvfs tree debug"
- depends on DVFS
-
-config RK_AVS_DBG
- bool "Enable avs(auto voltage scale) debug"
- depends on DVFS
-
config RK_CLOCK_PROC
bool "/proc/clocks support"
depends on PROC_FS