Skip to content

Commit

Permalink
thermal/drivers/of-thermal: Move the of_thermal_free_zone() to the in…
Browse files Browse the repository at this point in the history
…it 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: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
dlezcano committed Jan 27, 2020
1 parent 8c24b85 commit 93802b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/of-thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ __init *thermal_of_build_thermal_zone(struct device_node *np)
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;
int i, j;
Expand Down

0 comments on commit 93802b0

Please sign in to comment.