rknand: clk nandc never change when cpu freq change
author黄涛 <huangtao@rock-chips.com>
Fri, 20 Apr 2012 11:22:22 +0000 (19:22 +0800)
committer黄涛 <huangtao@rock-chips.com>
Fri, 20 Apr 2012 11:23:51 +0000 (19:23 +0800)
drivers/mtd/rknand/rknand_base_ko.c

index 7c0dce6a759ec5c084ed8f6d19e4153d86d2cbb1..7043d2d68734badb5c5e3fec4c6b84b7623dc984 100755 (executable)
@@ -23,7 +23,6 @@
 //#include "api_flash.h"\r
 #include "rknand_base.h"\r
 #include <linux/clk.h>\r
-#include <linux/cpufreq.h>\r
 \r
 #define DRIVER_NAME    "rk29xxnand"\r
 \r
@@ -328,35 +327,6 @@ static int rknand_nand_timing_cfg(void)
        return 0;\r
 }\r
 \r
-#ifdef CONFIG_CPU_FREQ\r
-static int rknand_cpufreq_transition(struct notifier_block *nb, unsigned long val, void *data)\r
-{\r
-    if(val == CPUFREQ_POSTCHANGE)\r
-        rknand_nand_timing_cfg();\r
-       return 0;\r
-}\r
-\r
-static inline int rknand_cpufreq_register(void)\r
-{\r
-       nandc_freq_transition.notifier_call = rknand_cpufreq_transition;\r
-       return cpufreq_register_notifier(&nandc_freq_transition, CPUFREQ_TRANSITION_NOTIFIER);\r
-}\r
-\r
-static inline void rknand_cpufreq_deregister(void)\r
-{\r
-       cpufreq_unregister_notifier(&nandc_freq_transition, CPUFREQ_TRANSITION_NOTIFIER);\r
-}\r
-#else\r
-static inline int rknand_cpufreq_register(void)\r
-{\r
-       return 0;\r
-}\r
-\r
-static inline void rknand_cpufreq_deregister(void)\r
-{\r
-}\r
-#endif\r
-\r
 static int rknand_info_init(struct rknand_info *nand_info)\r
 {\r
        struct mtd_info    *mtd = &rknand_mtd;\r
@@ -463,7 +433,6 @@ int add_rknand_device(struct rknand_info * prknand_Info)
 \r
        nandc_clk = clk_get(NULL, "nandc");\r
        clk_enable(nandc_clk);\r
-    rknand_cpufreq_register();\r
     rknand_nand_timing_cfg();\r
 \r
     return 0;\r