mirror_ubuntu-kernels/drivers/memory/tegra
Uwe Kleine-König 622fa819a2 memory: tegra210-emc: 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>
Link: https://lore.kernel.org/r/3e2951685dddbc0ab32244916a9849af206a6730.1702822744.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
2023-12-19 09:05:19 +01:00
..
Kconfig memory: tegra30-emc: Print additional memory info 2022-01-27 10:40:34 +01:00
Makefile memory: tegra: Add Tegra234 support 2022-05-09 10:46:00 +02:00
mc.c iommu/tegra-gart: Remove tegra-gart 2023-09-25 11:40:54 +02:00
mc.h memory: tegra: Make CPU cluster BW request a multiple of MC channels 2023-05-16 12:11:01 +02:00
tegra20-emc.c memory: tegra20-emc: fix interconnect registration race 2023-03-13 21:13:48 +02:00
tegra20.c iommu/tegra-gart: Remove tegra-gart 2023-09-25 11:40:54 +02:00
tegra30-emc.c memory: Explicitly include correct DT includes 2023-07-25 22:09:37 +02:00
tegra30.c memory: Explicitly include correct DT includes 2023-07-25 22:09:37 +02:00
tegra114.c memory: tegra: Extract setup code into callback 2021-06-03 21:49:41 +02:00
tegra124-emc.c memory: tegra124-emc: fix interconnect registration race 2023-03-13 21:13:48 +02:00
tegra124.c memory: Explicitly include correct DT includes 2023-07-25 22:09:37 +02:00
tegra186-emc.c memory: tegra186-emc: Convert to platform remove callback returning void 2023-12-19 09:05:18 +01:00
tegra186.c memory: tegra: Protect SID override call under CONFIG_IOMMU_API 2023-12-06 11:22:24 +01:00
tegra194.c memory: tegra: Add dummy implementation on Tegra194 2023-07-10 12:04:56 +02:00
tegra210-emc-cc-r21021.c memory: tegra: read values from correct device 2023-04-10 18:55:55 +02:00
tegra210-emc-core.c memory: tegra210-emc: Convert to platform remove callback returning void 2023-12-19 09:05:19 +01:00
tegra210-emc-table.c memory: tegra: remove redundant variable initialization 2023-03-22 18:48:46 +01:00
tegra210-emc.h memory: tegra: Drop <linux/clk-provider.h> 2020-06-22 13:54:58 +02:00
tegra210-mc.h memory: tegra: Add EMC scaling support code for Tegra210 2020-06-22 13:54:57 +02:00
tegra210.c memory: tegra: Extract setup code into callback 2021-06-03 21:49:41 +02:00
tegra234.c Memory controller drivers for v6.7 2023-10-16 23:00:46 +02:00