{
struct exynos_thermal_zone *th_zone = thermal->devdata;
if (!th_zone) {
- dev_err(th_zone->sensor_conf->dev,
+ dev_err(&thermal->device,
"thermal zone not registered\n");
return 0;
}
void *data;
if (!th_zone->sensor_conf) {
- dev_err(th_zone->sensor_conf->dev,
+ dev_err(&thermal->device,
"Temperature sensor not initialised\n");
return -EINVAL;
}
struct exynos_thermal_zone *th_zone = thermal->devdata;
if (!th_zone->sensor_conf) {
- dev_err(th_zone->sensor_conf->dev,
+ dev_err(&thermal->device,
"Temperature sensor not initialised\n");
return -EINVAL;
}