ggchild = of_get_next_child(gchild, NULL);
ret = of_parse_phandle_with_args(ggchild, "cooling-device", "#cooling-cells",
0, &cooling_spec);
- if (ret < 0) {
- pr_err("exynos_tmu do not get cooling spec \n");
- }
+ if (ret < 0)
+ pr_err("%s do not get cooling spec(err = %d) \n", data->tmu_name, ret);
+
cool_np = cooling_spec.np;
for_each_possible_cpu(cpu) {
ggchild = of_get_next_child(gchild, NULL);
ret = of_parse_phandle_with_args(ggchild, "cooling-device", "#cooling-cells",
0, &cooling_spec);
- if (ret < 0) {
- pr_err("exynos_tmu do not get cooling spec \n");
- }
+ if (ret < 0)
+ pr_err("%s do not get cooling spec(err = %d) \n", data->tmu_name, ret);
+
cool_np = cooling_spec.np;
data->cool_dev = of_gpufreq_cooling_register(cool_np, NULL);
ggchild = of_get_next_child(gchild, NULL);
ret = of_parse_phandle_with_args(ggchild, "cooling-device", "#cooling-cells",
0, &cooling_spec);
- if (ret < 0) {
- pr_err("exynos_tmu do not get cooling spec \n");
- }
+ if (ret < 0)
+ pr_err("%s do not get cooling spec(err = %d) \n", data->tmu_name, ret);
+
cool_np = cooling_spec.np;
data->cool_dev = of_isp_cooling_register(cool_np, NULL);