diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-04-14 19:12:35 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2023-05-08 14:41:00 +0200 |
commit | aafbf04f958df9d65551946da450f05e2536c45a (patch) | |
tree | bbc830f198cf19a5d93aa22a373e653a9c5b622c /include/drm | |
parent | dt-bindings: power: reset: convert nvmem-reboot-mode bindings to YAML (diff) | |
download | linux-aafbf04f958df9d65551946da450f05e2536c45a.tar.xz linux-aafbf04f958df9d65551946da450f05e2536c45a.zip |
power: reset: gpio-restart: Convert to platform remove callback returning void
Returning an error code from a remove callback makes the driver core
emit a generic (and so little helpful) error message and after that the
error code is ignored and the device unbound.
As gpio_restart_remove() already emits an error message, suppressing the
generic error is no loss.
Then convert to .remove_new() which is equivalent to returning 0
unconditionally in .remove(). See commit 5c5a7680e67b ("platform:
Provide a remove callback that returns no value") for its rational.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'include/drm')
0 files changed, 0 insertions, 0 deletions