Commit 93802b03 authored by Daniel Lezcano's avatar Daniel Lezcano

thermal/drivers/of-thermal: Move the of_thermal_free_zone() to the init section

The function of_thermal_free_zone() is only used the initialization
function which all belonging to the init section.

Move it also to the __init section.
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20191219222154.16100-2-daniel.lezcano@linaro.org
parent 8c24b85d
...@@ -977,7 +977,7 @@ __init *thermal_of_build_thermal_zone(struct device_node *np) ...@@ -977,7 +977,7 @@ __init *thermal_of_build_thermal_zone(struct device_node *np)
return ERR_PTR(ret); return ERR_PTR(ret);
} }
static inline void of_thermal_free_zone(struct __thermal_zone *tz) static __init void of_thermal_free_zone(struct __thermal_zone *tz)
{ {
struct __thermal_bind_params *tbp; struct __thermal_bind_params *tbp;
int i, j; int i, j;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment