thermal/core: Remove pointless thermal_zone_device_reset() function
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 22 Dec 2020 18:11:10 +0000 (19:11 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 19 Jan 2021 21:23:49 +0000 (22:23 +0100)
commitd0df264fbd3c531787dec59c4b3fca854bc7ee49
treec62135fe2a445b3d220fbed2fb1b2485144d8696
parentb39d2dd5b5ed08d15711aefd5afd72bd87387c64
thermal/core: Remove pointless thermal_zone_device_reset() function

The function thermal_zone_device_reset() is called in the
thermal_zone_device_register() which allocates and initialize the
structure. The passive field is already zero-ed by the allocation, the
function is useless.

Call directly thermal_zone_device_init() instead and
thermal_zone_device_reset().

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201222181110.1231977-1-daniel.lezcano@linaro.org
drivers/thermal/thermal_core.c