diff options
author | Uwe Kleine-König <[email protected]> | 2022-10-17 21:52:50 +0200 |
---|---|---|
committer | Helge Deller <[email protected]> | 2022-10-18 10:22:28 +0200 |
commit | 3c6174f9ffcb63ac8b54809c8043d7800b185bfb (patch) | |
tree | da3cee45e011e48c0ec8a5e93c2deb03ec7f2a0e /lib/mpi/mpi-sub-ui.c | |
parent | 25b72d530e7aa185955196b63f53c38f751f1632 (diff) |
fbdev: da8xx-fb: Fix error handling in .remove()
Even in the presence of problems (here: regulator_disable() might fail),
it's important to unregister all resources acquired during .probe() and
disable the device (i.e. DMA activity) because even if .remove() returns
an error code, the device is removed and the .remove() callback is never
called again later to catch up.
This is a preparation for making platform remove callbacks return void.
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
Fixes: 611097d5daea ("fbdev: da8xx: add support for a regulator")
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions