1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/media/platform/st/stm32/dma2d
Uwe Kleine-König 41579d570d media: dma2d: 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 (mostly) ignored
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.

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>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-04-11 16:59:18 +02:00
..
dma2d-hw.c media: platform: place stm32/ and sti/ under st/ dir 2022-03-18 05:58:34 +01:00
dma2d-regs.h media: platform: place stm32/ and sti/ under st/ dir 2022-03-18 05:58:34 +01:00
dma2d.c media: dma2d: Convert to platform remove callback returning void 2023-04-11 16:59:18 +02:00
dma2d.h media: stm32: dma2d: remove unused fb_buf 2023-03-20 00:22:13 +01:00