cpufreq: maple: Remove redundant code from maple_cpufreq_init()
[linux-2.6-block.git] / drivers / cpufreq / maple-cpufreq.c
index d9df89392b8439587fad331f5a728255b7f9050a..a94355723ef85780d347126b0d41bb70b0380446 100644 (file)
@@ -210,7 +210,7 @@ static int __init maple_cpufreq_init(void)
         */
        valp = of_get_property(cpunode, "clock-frequency", NULL);
        if (!valp)
-               return -ENODEV;
+               goto bail_noprops;
        max_freq = (*valp)/1000;
        maple_cpu_freqs[0].frequency = max_freq;
        maple_cpu_freqs[1].frequency = max_freq/2;
@@ -231,10 +231,6 @@ static int __init maple_cpufreq_init(void)
 
        rc = cpufreq_register_driver(&maple_cpufreq_driver);
 
-       of_node_put(cpunode);
-
-       return rc;
-
 bail_noprops:
        of_node_put(cpunode);