linux/drivers/thermal/tegra
Uwe Kleine-König f021f05262 thermal: tegra-bpmp: Convert to platform remove callback returning void
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.

To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new(), which already returns void. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2023-10-02 14:24:13 +02:00
..
Kconfig thermal/drivers/tegra: Correct compile-testing of drivers 2021-08-14 12:24:06 +02:00
Makefile thermal/drivers/tegra: Add driver for Tegra30 thermal sensor 2021-08-14 12:23:39 +02:00
soctherm-fuse.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
soctherm.c thermal: soctherm: Convert to platform remove callback returning void 2023-10-02 14:24:11 +02:00
soctherm.h thermal: tegra: add set_trips functionality 2019-05-13 20:35:33 -07:00
tegra30-tsensor.c thermal: Explicitly include correct DT includes 2023-07-31 20:03:42 +02:00
tegra124-soctherm.c thermal: tegra: add set_trips functionality 2019-05-13 20:35:33 -07:00
tegra132-soctherm.c thermal: tegra: add set_trips functionality 2019-05-13 20:35:33 -07:00
tegra210-soctherm.c thermal: tegra: Make tegra210_tsensor_thermtrips static 2019-05-23 21:52:47 -07:00
tegra-bpmp-thermal.c thermal: tegra-bpmp: Convert to platform remove callback returning void 2023-10-02 14:24:13 +02:00