rk: dvfs: never call clk_notifier_unregister when not call clk_notifier_register
author黄涛 <huangtao@rock-chips.com>
Thu, 29 Nov 2012 01:55:33 +0000 (09:55 +0800)
committer黄涛 <huangtao@rock-chips.com>
Thu, 29 Nov 2012 02:04:06 +0000 (10:04 +0800)
arch/arm/mach-rk2928/dvfs.c
arch/arm/mach-rk30/dvfs.c

index d9c27df6421c581b4118d9b7c101bfb3ee297acf..f3b669a080f244b51f0d934d012dfc28c6ac4249 100644 (file)
@@ -60,9 +60,6 @@ static LIST_HEAD(rk_dvfs_tree);
 static DEFINE_MUTEX(mutex);\r
 static DEFINE_MUTEX(rk_dvfs_mutex);\r
 \r
-extern int rk30_clk_notifier_register(struct clk *clk, struct notifier_block *nb);\r
-extern int rk30_clk_notifier_unregister(struct clk *clk, struct notifier_block *nb);\r
-\r
 static int dump_dbg_map(char* buf);\r
 \r
 #define PD_ON  1\r
@@ -441,8 +438,10 @@ int clk_disable_dvfs(struct clk *clk)
                dvfs_clk->enable_dvfs--;\r
                if (0 == dvfs_clk->enable_dvfs) {\r
                        DVFS_ERR("clk closed!\n");\r
-                       rk30_clk_notifier_unregister(clk, dvfs_clk->dvfs_nb);\r
+#if 0\r
+                       clk_notifier_unregister(clk, dvfs_clk->dvfs_nb);\r
                        DVFS_DBG("clk unregister nb!\n");\r
+#endif\r
                }\r
        }\r
        return 0;\r
index faf977f574c07fd13897b016bdf248831a36ed79..3b72985c8c9720301b3b8a7374031ae6012f90dd 100755 (executable)
@@ -60,9 +60,6 @@ static LIST_HEAD(rk_dvfs_tree);
 static DEFINE_MUTEX(mutex);\r
 static DEFINE_MUTEX(rk_dvfs_mutex);\r
 \r
-extern int rk30_clk_notifier_register(struct clk *clk, struct notifier_block *nb);\r
-extern int rk30_clk_notifier_unregister(struct clk *clk, struct notifier_block *nb);\r
-\r
 static int dump_dbg_map(char* buf);\r
 \r
 #define PD_ON  1\r
@@ -441,8 +438,10 @@ int clk_disable_dvfs(struct clk *clk)
                dvfs_clk->enable_dvfs--;\r
                if (0 == dvfs_clk->enable_dvfs) {\r
                        DVFS_ERR("clk closed!\n");\r
-                       rk30_clk_notifier_unregister(clk, dvfs_clk->dvfs_nb);\r
+#if 0\r
+                       clk_notifier_unregister(clk, dvfs_clk->dvfs_nb);\r
                        DVFS_DBG("clk unregister nb!\n");\r
+#endif\r
                }\r
        }\r
        return 0;\r