lkml.org 
[lkml]   [2021]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 4.9 13/18] thermal/core: Correct function name thermal_zone_device_unregister()
    Date
    From: Yang Yingliang <yangyingliang@huawei.com>

    [ Upstream commit a052b5118f13febac1bd901fe0b7a807b9d6b51c ]

    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 <yangyingliang@huawei.com>
    Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
    Link: https://lore.kernel.org/r/20210517051020.3463536-1-yangyingliang@huawei.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/thermal/thermal_core.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
    index 90c033b4ec98..4c2dc3a59eb5 100644
    --- a/drivers/thermal/thermal_core.c
    +++ b/drivers/thermal/thermal_core.c
    @@ -2027,7 +2027,7 @@ struct thermal_zone_device *thermal_zone_device_register(const char *type,
    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)
    --
    2.30.2
    \
     
     \ /
      Last update: 2021-07-14 22:10    [W:5.827 / U:0.176 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site