summaryrefslogtreecommitdiff
path: root/drivers/thermal/thermal_netlink.h
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2023-01-23 18:27:54 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-01-25 18:40:39 +0300
commit58d1c9fd0e859912ae322d24aa0baedc9030b8ed (patch)
tree71eab9fa5147edb45b541172243728972a61a270 /drivers/thermal/thermal_netlink.h
parent47e3f00074c27661268674d832f743f1940ae17c (diff)
downloadlinux-58d1c9fd0e859912ae322d24aa0baedc9030b8ed.tar.xz
thermal/core: Fix unregistering netlink at thermal init time
The thermal subsystem initialization miss an netlink unregistering function in the error. Add it. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/thermal/thermal_netlink.h')
-rw-r--r--drivers/thermal/thermal_netlink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/thermal/thermal_netlink.h b/drivers/thermal/thermal_netlink.h
index 1052f523188d..0a9987c3bc57 100644
--- a/drivers/thermal/thermal_netlink.h
+++ b/drivers/thermal/thermal_netlink.h
@@ -13,6 +13,7 @@ struct thermal_genl_cpu_caps {
/* Netlink notification function */
#ifdef CONFIG_THERMAL_NETLINK
int __init thermal_netlink_init(void);
+void __init thermal_netlink_exit(void);
int thermal_notify_tz_create(int tz_id, const char *name);
int thermal_notify_tz_delete(int tz_id);
int thermal_notify_tz_enable(int tz_id);
@@ -115,4 +116,6 @@ static inline int thermal_genl_cpu_capability_event(int count, struct thermal_ge
return 0;
}
+static inline void __init thermal_netlink_exit(void) {}
+
#endif /* CONFIG_THERMAL_NETLINK */