Re: [PATCH 1/2] host1x: Make remove callback return void

From: Luca Ceresoli

Date: Wed Dec 31 2025 - 04:15:01 EST


Hello Uwe,

On Wed Dec 10, 2025 at 9:31 AM CET, Uwe Kleine-König wrote:
> The return value of struct device_driver::remove is ignored by the core
> (see device_remove() in drivers/base/dd.c). So it doesn't make sense to
> let the host1x remove callback return an int just to ignore it later.
>
> So make the callback return void. All current implementors return 0, so
> they are easily converted.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxx>

Tested-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx> # tegra20 tegra-video
Reviewed-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com