thermal: broadcom: use devm_thermal_zone_of_sensor_register
authorJulia Lawall <Julia.Lawall@lip6.fr>
Tue, 30 Oct 2018 16:08:51 +0000 (17:08 +0100)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 2 Jan 2019 12:47:09 +0000 (04:47 -0800)
commitadad7c7d6a0ce3e9308fc6596865cdf570b5c466
tree675906d0e256e0a185917d868ba9c89f11ce566f
parentd56c19d07e0bc3ceff366a49b7d7a2440c967b1b
thermal: broadcom: use devm_thermal_zone_of_sensor_register

Using devm_thermal_zone_of_sensor_register allows to simplify some
error handling code, drop a label, and drop the remove function.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/broadcom/brcmstb_thermal.c