EXPORT_SYMBOL_GPL(cpufreq_cooling_unregister);
struct thermal_cooling_device *
-exynos_cpufreq_cooling_register(const struct cpumask *clip_cpus)
+exynos_cpufreq_cooling_register(struct device_node *np, const struct cpumask *clip_cpus)
{
- struct device *dev;
- struct device_node *np;
struct thermal_zone_device *tz;
void *gen_block;
struct ect_gen_param_table *pwr_coeff;
u32 capacitance = 0;
- dev = get_cpu_device(cpumask_first(clip_cpus));
-
- if (!dev)
- return ERR_PTR(-EINVAL);
-
- np = of_node_get(dev->of_node);
-
if (!np)
return ERR_PTR(-EINVAL);
get_static_t plat_static_func);
struct thermal_cooling_device *
-exynos_cpufreq_cooling_register(const struct cpumask *clip_cpus);
+exynos_cpufreq_cooling_register(struct device_node *np, const struct cpumask *clip_cpus);
#else
static inline struct thermal_cooling_device *
}
static inline struct thermal_cooling_device *
-exynos_cpufreq_cooling_register(const struct cpumask *clip_cpus);
+exynos_cpufreq_cooling_register(struct device_node *np, const struct cpumask *clip_cpus);
{
return NULL;
}
}
static inline struct thermal_cooling_device *
-exynos_cpufreq_cooling_register(const struct cpumask *clip_cpus)
+exynos_cpufreq_cooling_register(struct device_node *np, const struct cpumask *clip_cpus)
{
return NULL;
}