projects
/
platform
/
core
/
system
/
pass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e381ff
)
pass: thermal: Fix missing unregister operation
10/262710/1
author
Dongwoo Lee
<dwoo08.lee@samsung.com>
Wed, 11 Aug 2021 02:15:41 +0000
(11:15 +0900)
committer
Dongwoo Lee
<dwoo08.lee@samsung.com>
Wed, 18 Aug 2021 07:40:11 +0000
(16:40 +0900)
DEVICE_NOTIFIER_THERMAL is registered during probe, but it is not
unregistered during exit. So this adds missing unregister to exit.
Change-Id: I035547932abed44a255b0701f2290e3e74d7d3a3
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/thermal/thermal.c
patch
|
blob
|
history
diff --git
a/src/thermal/thermal.c
b/src/thermal/thermal.c
index cca20dceee42c7ce82956af0f852c3b1d8e8bf96..3551e4653e2f18d7374232e7075f8a0babb8fba0 100644
(file)
--- a/
src/thermal/thermal.c
+++ b/
src/thermal/thermal.c
@@
-321,6
+321,8
@@
static void thermal_init(void *data)
*/
static void thermal_exit(void *data)
{
+ unregister_notifier(DEVICE_NOTIFIER_THERMAL, thermal_notifier_cb, NULL);
+
unregister_notifier(DEVICE_NOTIFIER_INIT_DONE,
thermal_init_done, NULL);