aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2022-10-14 18:06:23 +0200
committerWill Deacon <[email protected]>2023-04-17 12:26:03 +0100
commit858a56630a840aba0e291fd4958e9a8f74638d56 (patch)
tree02c94fc4340aca6b989a8b14dbaa82cc0f54c53b /lib/memory-notifier-error-inject.c
parente8d018dd0257f744ca50a729e3d042cf2ec9da65 (diff)
ACPI: AGDI: Improve error reporting for problems during .remove()
Returning an error value in a platform driver's remove callback results in a generic error message being emitted by the driver core, but otherwise it doesn't make a difference. The device goes away anyhow. So instead of triggering the generic platform error message, emit a more helpful message if a problem occurs and return 0 to suppress the generic message. This patch is a preparation for making platform remove callbacks return void. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Lorenzo Pieralisi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions