linux/drivers/misc/cxl
Uwe Kleine-König 3d293acfa8 cxl: 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: Andrew Donnellan <ajd@linux.ibm.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/add08320eef9ea20ceca78648370590a4bd447b0.1708508896.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-05 14:28:51 +00:00
..
api.c cxl/ocxl: Prepare cleanup of powerpc's asm/prom.h 2022-05-11 23:06:39 +10:00
base.c misc: Explicitly include correct DT includes 2023-08-04 15:39:04 +02:00
context.c mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
cxl.h powerpc: Add PVN support for HeXin C2000 processor 2023-12-01 21:15:33 +11:00
cxllib.c cxl/ocxl: Prepare cleanup of powerpc's asm/prom.h 2022-05-11 23:06:39 +10:00
debugfs.c
fault.c cxl: remove vma linked list walk 2022-09-26 19:46:20 -07:00
file.c cxl: make cxl_class constant 2023-10-25 11:08:54 +02:00
flash.c cxl/ocxl: Prepare cleanup of powerpc's asm/prom.h 2022-05-11 23:06:39 +10:00
guest.c cxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter() 2022-11-24 23:31:24 +11:00
hcalls.c misc: cxl: hcalls: Demote half-assed kerneldoc attempt 2020-07-01 15:08:05 +02:00
hcalls.h
irq.c cxl: Fix a memory leak in an error handling path 2022-07-14 16:53:52 +02:00
Kconfig powerpc/64s: Make hash MMU support configurable 2021-12-09 22:40:24 +11:00
main.c cxl/ocxl: Prepare cleanup of powerpc's asm/prom.h 2022-05-11 23:06:39 +10:00
Makefile
native.c cxl: Drop unused detach_spa() 2023-08-24 22:33:16 +10:00
of.c cxl: Convert to platform remove callback returning void 2024-03-05 14:28:51 +00:00
pci.c cxl: Use pci_find_vsec_capability() to simplify the code 2023-08-16 23:54:48 +10:00
sysfs.c cxl: use default_groups in kobj_type 2021-12-29 10:55:50 +01:00
trace.c
trace.h
vphb.c cxl: Remove unnecessary cxl_pci_window_alignment() 2022-12-06 23:15:06 +11:00