Re: [PATCH 2/2] host1x: Convert to bus methods

From: Luca Ceresoli

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


On Wed Dec 10, 2025 at 9:31 AM CET, Uwe Kleine-König wrote:
> The callbacks .probe(), .remove() and .shutdown() for device_drivers
> should go away. So migrate to bus methods. There are two differences
> that need addressing:
>
> - The bus remove callback returns void while the driver remove callback
> returns int (the actual value is ignored by the core).
> - The bus shutdown callback is also called for unbound devices, so an
> additional check for dev->driver != NULL is needed.
>
> 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