diff options
Diffstat (limited to 'drivers/cpufreq/arm_big_little_dt.c')
| -rw-r--r-- | drivers/cpufreq/arm_big_little_dt.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/cpufreq/arm_big_little_dt.c b/drivers/cpufreq/arm_big_little_dt.c index 44be3115375c..173ed059d95f 100644 --- a/drivers/cpufreq/arm_big_little_dt.c +++ b/drivers/cpufreq/arm_big_little_dt.c | |||
| @@ -66,8 +66,8 @@ static int dt_get_transition_latency(struct device *cpu_dev) | |||
| 66 | 66 | ||
| 67 | parent = of_find_node_by_path("/cpus"); | 67 | parent = of_find_node_by_path("/cpus"); |
| 68 | if (!parent) { | 68 | if (!parent) { |
| 69 | pr_err("failed to find OF /cpus\n"); | 69 | pr_info("Failed to find OF /cpus. Use CPUFREQ_ETERNAL transition latency\n"); |
| 70 | return -ENOENT; | 70 | return CPUFREQ_ETERNAL; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | for_each_child_of_node(parent, np) { | 73 | for_each_child_of_node(parent, np) { |
| @@ -78,10 +78,11 @@ static int dt_get_transition_latency(struct device *cpu_dev) | |||
| 78 | of_node_put(np); | 78 | of_node_put(np); |
| 79 | of_node_put(parent); | 79 | of_node_put(parent); |
| 80 | 80 | ||
| 81 | return 0; | 81 | return transition_latency; |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | return -ENODEV; | 84 | pr_info("clock-latency isn't found, use CPUFREQ_ETERNAL transition latency\n"); |
| 85 | return CPUFREQ_ETERNAL; | ||
| 85 | } | 86 | } |
| 86 | 87 | ||
| 87 | static struct cpufreq_arm_bL_ops dt_bL_ops = { | 88 | static struct cpufreq_arm_bL_ops dt_bL_ops = { |
