linux/arch/sparc
Uwe Kleine-König 9f2072ca33 sparc: parport: 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>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/2765e090dba2d99f92e16c92b6aa55090aae053b.1712755381.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
2024-04-22 16:51:57 +02:00
..
boot sparc: Use $(kecho) to announce kernel images being ready 2023-12-04 13:28:06 +01:00
configs arch/*/configs/*defconfig: Replace AUTOFS4_FS by AUTOFS_FS 2023-07-29 14:08:22 -07:00
crypto crypto: sparc/crc32c - stop using the shash alignmask 2023-10-27 18:04:24 +08:00
include sparc: parport: Convert to platform remove callback returning void 2024-04-22 16:51:57 +02:00
kernel sparc64: Fix number of online CPUs 2024-04-22 15:33:07 +02:00
lib sparc32: Use generic cmpdi2/ucmpdi2 variants 2024-03-08 21:20:23 +01:00
math-emu treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
mm sparc64: Fix prototype warning for vmemmap_free 2024-04-22 15:33:06 +02:00
net sparc: Fix typos 2024-02-16 16:50:25 +01:00
power treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
prom sparc: Compare pointers to NULL instead of 0 2024-04-22 16:45:52 +02:00
vdso sparc64: Fix prototype warning for init_vdso_image 2024-04-22 15:33:06 +02:00
video sparc: Fix undefined reference to fb_is_primary_device 2024-02-21 14:08:41 +01:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig This includes the following changes related to sparc for v6.9: 2024-03-15 12:47:21 -07:00
Kconfig.debug sparc: select FRAME_POINTER instead of redefining it 2024-02-16 16:50:26 +01:00
Makefile sparc: Fix undefined reference to fb_is_primary_device 2024-02-21 14:08:41 +01:00