diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-10-09 12:37:26 +0200 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-05-27 10:34:35 +0200 |
commit | 0edb555a65d1ef047a9805051c36922b52a38a9d (patch) | |
tree | e688f47b1a110e124ce61e3821101e72ae321306 /kernel/notifier.c | |
parent | 45e7d78ef5e93520e574c05d27bcb3b69234486c (diff) |
platform: Make platform_driver::remove() return void
struct platform_driver::remove returning an integer made driver authors
expect that returning an error code was proper error handling. However
the driver core ignores the error and continues to remove the device
because there is nothing the core could do anyhow and reentering the
remove callback again is only calling for trouble.
To prevent such wrong assumptions, change the return type of the remove
callback to void. This was prepared by introducing an alternative remove
callback returning void and converting all drivers to that. So .remove()
can be changed without further changes in drivers.
This corresponds to step b) of the plan outlined in commit
5c5a7680e67b ("platform: Provide a remove callback that returns no value").
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'kernel/notifier.c')
0 files changed, 0 insertions, 0 deletions