Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe0ae220 authored by Ram Chandrasekar's avatar Ram Chandrasekar Committed by Ram Chandrasekar
Browse files

drivers: thermal: Avoid section mismatch



Thermal drivers netlink init section is calling driver cleanup
function in the exit section. This will cause a section mismatch.

Remove the clean up function from exit section to avoid section mismatch.

Change-Id: Id04b1ace0c50fe74989071564d52f7b635980eb7
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent a5911a38
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2443,7 +2443,7 @@ static int __init thermal_init(void)
	return result;
}

static void __exit thermal_exit(void)
static void thermal_exit(void)
{
	unregister_pm_notifier(&thermal_pm_nb);
	of_thermal_destroy_zones();