diff options
Diffstat (limited to 'drivers/cpufreq/maple-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/maple-cpufreq.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/cpufreq/maple-cpufreq.c b/drivers/cpufreq/maple-cpufreq.c index d9df89392b84..a94355723ef8 100644 --- a/drivers/cpufreq/maple-cpufreq.c +++ b/drivers/cpufreq/maple-cpufreq.c | |||
@@ -210,7 +210,7 @@ static int __init maple_cpufreq_init(void) | |||
210 | */ | 210 | */ |
211 | valp = of_get_property(cpunode, "clock-frequency", NULL); | 211 | valp = of_get_property(cpunode, "clock-frequency", NULL); |
212 | if (!valp) | 212 | if (!valp) |
213 | return -ENODEV; | 213 | goto bail_noprops; |
214 | max_freq = (*valp)/1000; | 214 | max_freq = (*valp)/1000; |
215 | maple_cpu_freqs[0].frequency = max_freq; | 215 | maple_cpu_freqs[0].frequency = max_freq; |
216 | maple_cpu_freqs[1].frequency = max_freq/2; | 216 | maple_cpu_freqs[1].frequency = max_freq/2; |
@@ -231,10 +231,6 @@ static int __init maple_cpufreq_init(void) | |||
231 | 231 | ||
232 | rc = cpufreq_register_driver(&maple_cpufreq_driver); | 232 | rc = cpufreq_register_driver(&maple_cpufreq_driver); |
233 | 233 | ||
234 | of_node_put(cpunode); | ||
235 | |||
236 | return rc; | ||
237 | |||
238 | bail_noprops: | 234 | bail_noprops: |
239 | of_node_put(cpunode); | 235 | of_node_put(cpunode); |
240 | 236 | ||