thermal/core: Correct function name thermal_zone_device_unregister()
PATCH 1/1 thermal/core: Correct function name thermal_zone_device_unregister()
Fix the following make W=1 kernel build warning:
drivers/thermal/thermal_core.c:1376: warning: expecting prototype for thermal_device_unregister(). Prototype was for thermal_zone_device_unregister() instead
Signed-off-by Yang Yingliang <[email protected]>
--- drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/thermal_core.c +1 -1
@@ -1369,7 +1369,7 @@ thermal_zone_device_register(const char *type, int trips, int mask,EXPORT_SYMBOL_GPL (thermal_zone_device_register);/** -* thermal_device_unregister - removes the registered thermal zone device +* thermal_zone_device_unregister - removes the registered thermal zone device * @tz: the thermal zone device to remove */ void thermal_zone_device_unregister (struct thermal_zone_device *tz)
Signature · 1 line
2.25.1
The following commit has been merged into the thermal/next branch of thermal:
The following commit has been merged into the thermal/next branch of thermal:
Commit-ID: a052b5118f13febac1bd901fe0b7a807b9d6b51c Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//a052b5118f13febac1bd901fe0b7a807b9d6b51c Author: Yang Yingliang <[email protected]> AuthorDate: Mon, 17 May 2021 13:10:20 +08:00 Committer: Daniel Lezcano <[email protected]> CommitterDate: Sat, 12 Jun 2021 21:10:06 +02:00
thermal/core: Correct function name thermal_zone_device_unregister()
Fix the following make W=1 kernel build warning:
drivers/thermal/thermal_core.c:1376: warning: expecting prototype for thermal_device_unregister(). Prototype was for thermal_zone_device_unregister() instead
Signed-off-by Yang Yingliang <[email protected]>
Signed-off-by Daniel Lezcano <[email protected]>
--- drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/thermal_core.c +1 -1
@@ -1369,7 +1369,7 @@ free_tz:EXPORT_SYMBOL_GPL (thermal_zone_device_register);/** -* thermal_device_unregister - removes the registered thermal zone device +* thermal_zone_device_unregister - removes the registered thermal zone device * @tz: the thermal zone device to remove */ void thermal_zone_device_unregister (struct thermal_zone_device *tz)