linux-stable/drivers/memory
Uwe Kleine-König f17130855d memory: fsl_ifc: 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/4c90b971e9816320586f4e01e68c95331b8e524a.1702822744.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
2023-12-19 09:05:16 +01:00
..
samsung memory: Explicitly include correct DT includes 2023-07-25 22:09:37 +02:00
tegra memory: tegra: Protect SID override call under CONFIG_IOMMU_API 2023-12-06 11:22:24 +01:00
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
atmel-ebi.c memory: Use device_get_match_data() 2023-10-12 15:42:16 +02:00
brcmstb_dpfe.c memory: brcmstb_dpfe: Convert to platform remove callback returning void 2023-12-19 09:05:15 +01:00
brcmstb_memc.c memory: brcmstb_memc: Convert to platform remove callback returning void 2023-12-19 09:05:15 +01:00
bt1-l2-ctl.c memory: remove MODULE_LICENSE in non-modules 2023-03-09 15:20:50 +01:00
da8xx-ddrctl.c memory: Explicitly include correct DT includes 2023-07-25 22:09:37 +02:00
dfl-emif.c memory: dfl-emif: Update the dfl emif driver support revision 1 2022-08-16 12:12:04 +03:00
emif-asm-offsets.c memory: emif-asm-offsets: Add GPLv2 SPDX license header 2020-07-24 16:18:32 +02:00
emif.c memory: emif: Convert to platform remove callback returning void 2023-12-19 09:05:16 +01:00
emif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
fsl-corenet-cf.c memory: fsl-corenet-cf: Convert to platform remove callback returning void 2023-12-19 09:05:16 +01:00
fsl_ifc.c memory: fsl_ifc: Convert to platform remove callback returning void 2023-12-19 09:05:16 +01:00
jedec_ddr.h memory: Add LPDDR2-info helpers 2021-10-15 09:52:47 +02:00
jedec_ddr_data.c memory: Add LPDDR2-info helpers 2021-10-15 09:52:47 +02:00
jz4780-nemc.c memory: Explicitly include correct DT includes 2023-07-25 22:09:37 +02:00
Kconfig memory: atmel-sdramc: remove the driver 2023-06-02 10:39:24 +02:00
Makefile memory: atmel-sdramc: remove the driver 2023-06-02 10:39:24 +02:00
mtk-smi.c memory: mtk-smi: mt8365: Add SMI Support 2023-04-10 18:57:15 +02:00
mvebu-devbus.c memory: remove MODULE_LICENSE in non-modules 2023-03-09 15:20:50 +01:00
of_memory.c memory: of: Fix refcount leak bug in of_lpddr3_get_ddr_timings() 2022-08-16 12:12:06 +03:00
of_memory.h memory: Add LPDDR2-info helpers 2021-10-15 09:52:47 +02:00
omap-gpmc.c memory: omap-gpmc: fix wait pin validation 2022-12-27 09:51:24 +01:00
pl172.c amba: Make the remove callback return void 2021-02-02 14:25:50 +01:00
pl353-smc.c memory: Explicitly include correct DT includes 2023-07-25 22:09:37 +02:00
renesas-rpc-if.c memory: Explicitly include correct DT includes 2023-07-25 22:09:37 +02:00
stm32-fmc2-ebi.c memory: Explicitly include correct DT includes 2023-07-25 22:09:37 +02:00
ti-aemif.c memory: ti-emif: simplify platform_get_resource() 2022-04-26 09:48:25 +02:00
ti-emif-pm.c memory: ti-emif-pm: Use device_get_match_data() to simplify the code 2023-01-23 11:48:31 +01:00
ti-emif-sram-pm.S ARM: mm: Make virt_to_pfn() a static inline 2023-05-29 11:27:08 +02:00