diff options
| -rw-r--r-- | drivers/cpufreq/armada-8k-cpufreq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/cpufreq/armada-8k-cpufreq.c b/drivers/cpufreq/armada-8k-cpufreq.c index 8a5ddb93fc58..b3f4bd647e9b 100644 --- a/drivers/cpufreq/armada-8k-cpufreq.c +++ b/drivers/cpufreq/armada-8k-cpufreq.c | |||
| @@ -128,8 +128,10 @@ static int __init armada_8k_cpufreq_init(void) | |||
| 128 | struct cpumask cpus; | 128 | struct cpumask cpus; |
| 129 | 129 | ||
| 130 | node = of_find_compatible_node(NULL, NULL, "marvell,ap806-cpu-clock"); | 130 | node = of_find_compatible_node(NULL, NULL, "marvell,ap806-cpu-clock"); |
| 131 | if (!node || !of_device_is_available(node)) | 131 | if (!node || !of_device_is_available(node)) { |
| 132 | of_node_put(node); | ||
| 132 | return -ENODEV; | 133 | return -ENODEV; |
| 134 | } | ||
| 133 | 135 | ||
| 134 | nb_cpus = num_possible_cpus(); | 136 | nb_cpus = num_possible_cpus(); |
| 135 | freq_tables = kcalloc(nb_cpus, sizeof(*freq_tables), GFP_KERNEL); | 137 | freq_tables = kcalloc(nb_cpus, sizeof(*freq_tables), GFP_KERNEL); |
