{
        struct exynos_tmu_data *data = platform_get_drvdata(pdev);
        struct thermal_zone_device *tz = data->tzd;
+       struct thermal_trip trip;
        unsigned int con, interrupt_en = 0, i;
 
        con = get_con_reg(data, readl(data->base + EXYNOS_TMU_REG_CONTROL));
 
        if (on) {
                for (i = 0; i < data->ntrip; i++) {
-                       if (!of_thermal_is_trip_valid(tz, i))
+                       if (thermal_zone_get_trip(tz, i, &trip))
                                continue;
 
                        interrupt_en |=
 {
        struct exynos_tmu_data *data = platform_get_drvdata(pdev);
        struct thermal_zone_device *tz = data->tzd;
+       struct thermal_trip trip;
        unsigned int con, interrupt_en = 0, pd_det_en, i;
 
        con = get_con_reg(data, readl(data->base + EXYNOS_TMU_REG_CONTROL));
 
        if (on) {
                for (i = 0; i < data->ntrip; i++) {
-                       if (!of_thermal_is_trip_valid(tz, i))
+                       if (thermal_zone_get_trip(tz, i, &trip))
                                continue;
 
                        interrupt_en |=
 {
        struct exynos_tmu_data *data = platform_get_drvdata(pdev);
        struct thermal_zone_device *tz = data->tzd;
+       struct thermal_trip trip;
        unsigned int con, interrupt_en = 0, i;
 
        con = get_con_reg(data, readl(data->base + EXYNOS_TMU_REG_CONTROL));
 
        if (on) {
                for (i = 0; i < data->ntrip; i++) {
-                       if (!of_thermal_is_trip_valid(tz, i))
+                       if (thermal_zone_get_trip(tz, i, &trip))
                                continue;
 
                        interrupt_en |=