OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c24b85
)
thermal/drivers/of-thermal: Move the of_thermal_free_zone() to the init section
author
Daniel Lezcano
<daniel.lezcano@linaro.org>
Thu, 19 Dec 2019 22:21:53 +0000
(23:21 +0100)
committer
Daniel Lezcano
<daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 09:24:32 +0000
(10:24 +0100)
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 <daniel.lezcano@linaro.org>
Link:
https://lore.kernel.org/r/20191219222154.16100-2-daniel.lezcano@linaro.org
drivers/thermal/of-thermal.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/of-thermal.c
b/drivers/thermal/of-thermal.c
index
bb6c036
..
3f66e35
100644
(file)
--- a/
drivers/thermal/of-thermal.c
+++ b/
drivers/thermal/of-thermal.c
@@
-977,7
+977,7
@@
free_tz:
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;