The device node pointer is no longer needed in the thermal trip
structure, remove it.
Cc: Alexandre Bailon <abailon@baylibre.com>
Cc: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linexp.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://lore.kernel.org/r/20220722200007.1839356-4-daniel.lezcano@linexp.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
 
 /**
  * struct thermal_trip - representation of a point in temperature domain
- * @np: pointer to struct device_node that this trip point was created from
  * @temperature: temperature value in miliCelsius
  * @hysteresis: relative hysteresis in miliCelsius
  * @type: trip point type
  */
 struct thermal_trip {
-       struct device_node *np;
        int temperature;
        int hysteresis;
        enum thermal_trip_type type;
 
                return ret;
        }
 
-       /* Required for cooling map matching */
-       trip->np = np;
-       of_node_get(np);
-
        return 0;
 }
 
 
        kfree(tz->tbps);
 free_trips:
-       for (i = 0; i < tz->ntrips; i++)
-               of_node_put(tz->trips[i].np);
        kfree(tz->trips);
        of_node_put(trips);
        of_node_put(gchild);
        }
 
        kfree(tz->tbps);
-       for (i = 0; i < tz->ntrips; i++)
-               of_node_put(tz->trips[i].np);
        kfree(tz->trips);
        kfree(tz);
 }