[COMMON] thermal: samsung: Remove unnecessary kboject_uevent
authorHyeonseong Gil <hs.gil@samsung.com>
Mon, 18 Jul 2016 06:08:39 +0000 (15:08 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:13:04 +0000 (17:13 +0900)
Change-Id: I5cee3139d72457a77c40cf014feda118b90c40d7
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
drivers/thermal/samsung/exynos_tmu.c

index 36e242f2a3496d02150557a251c7670dea50c854..74ab5ef687f387b8cc2157f63e3d5dca16bd1313 100644 (file)
@@ -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);
 }
 
 /*