|
@@ -245,8 +245,6 @@ static int ti_cpufreq_init(void)
|
|
if (ret)
|
|
if (ret)
|
|
goto fail_put_node;
|
|
goto fail_put_node;
|
|
|
|
|
|
- of_node_put(opp_data->opp_node);
|
|
|
|
-
|
|
|
|
ret = PTR_ERR_OR_ZERO(dev_pm_opp_set_supported_hw(opp_data->cpu_dev,
|
|
ret = PTR_ERR_OR_ZERO(dev_pm_opp_set_supported_hw(opp_data->cpu_dev,
|
|
version, VERSION_COUNT));
|
|
version, VERSION_COUNT));
|
|
if (ret) {
|
|
if (ret) {
|
|
@@ -255,6 +253,8 @@ static int ti_cpufreq_init(void)
|
|
goto fail_put_node;
|
|
goto fail_put_node;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ of_node_put(opp_data->opp_node);
|
|
|
|
+
|
|
register_cpufreq_dt:
|
|
register_cpufreq_dt:
|
|
platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
|
|
platform_device_register_simple("cpufreq-dt", -1, NULL, 0);
|
|
|
|
|