From: Bartosz Golaszewski Date: Thu, 2 Apr 2026 14:15:03 +0000 (+0200) Subject: software node: remove software_node_exit() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3eb6a25b969910852bacbed9408afba4fc09c91;p=thirdparty%2Fkernel%2Flinux.git software node: remove software_node_exit() software_node_exit() is an __exitcall() in a built-in compilation unit so effectively dead code. Remove it. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko Link: https://patch.msgid.link/20260402-nokia770-gpio-swnodes-v5-2-d730db3dd299@oss.qualcomm.com Signed-off-by: Danilo Krummrich --- diff --git a/drivers/base/swnode.c b/drivers/base/swnode.c index 51320837f3a9f..26cbe1c2a2e04 100644 --- a/drivers/base/swnode.c +++ b/drivers/base/swnode.c @@ -1135,10 +1135,3 @@ static int __init software_node_init(void) return 0; } postcore_initcall(software_node_init); - -static void __exit software_node_exit(void) -{ - ida_destroy(&swnode_root_ids); - kset_unregister(swnode_kset); -} -__exitcall(software_node_exit);