From: Hyeonseong Gil Date: Mon, 18 Jul 2016 06:08:39 +0000 (+0900) Subject: [COMMON] thermal: samsung: Remove unnecessary kboject_uevent X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e3389d2d043d8bd530878be91f3348ee612305f2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] thermal: samsung: Remove unnecessary kboject_uevent Change-Id: I5cee3139d72457a77c40cf014feda118b90c40d7 Signed-off-by: Hyeonseong Gil --- diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 36e242f2a349..74ab5ef687f3 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -194,10 +194,7 @@ struct exynos_tmu_data { static void exynos_report_trigger(struct exynos_tmu_data *p) { - char data[10], *envp[] = { data, NULL }; struct thermal_zone_device *tz = p->tzd; - int temp; - unsigned int i; if (!tz) { pr_err("No thermal zone device defined\n"); @@ -205,19 +202,6 @@ static void exynos_report_trigger(struct exynos_tmu_data *p) } thermal_zone_device_update(tz, THERMAL_EVENT_UNSPECIFIED); - - mutex_lock(&tz->lock); - /* Find the level for which trip happened */ - for (i = 0; i < of_thermal_get_ntrips(tz); i++) { - tz->ops->get_trip_temp(tz, i, &temp); - if (tz->last_temperature < temp) - break; - } - - - snprintf(data, sizeof(data), "%u", i); - kobject_uevent_env(&tz->device.kobj, KOBJ_CHANGE, envp); - mutex_unlock(&tz->lock); } /*