pass: thermal: Fix missing unregister operation 10/262710/1
authorDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 11 Aug 2021 02:15:41 +0000 (11:15 +0900)
committerDongwoo 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

index cca20dceee42c7ce82956af0f852c3b1d8e8bf96..3551e4653e2f18d7374232e7075f8a0babb8fba0 100644 (file)
@@ -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);