]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
host1x: Convert to bus methods
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Wed, 10 Dec 2025 08:31:38 +0000 (09:31 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 13 Jan 2026 11:26:32 +0000 (12:26 +0100)
commit1f61d735b8595f80ae5cfbbe11390a49b7f45911
tree6f92200f7e8318eb027d15d29823bf130b8be385
parentba3588410cedb1696cfe56ebefcc4401c6d0bb36
host1x: Convert to bus methods

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@baylibre.com>
Tested-by: Luca Ceresoli <luca.ceresoli@bootlin.com> # tegra20 tegra-video
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/dd55d034c68953268ea416aa5c13e41b158fcbb4.1765355236.git.u.kleine-koenig@baylibre.com
drivers/gpu/host1x/bus.c