diff options
| author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2025-12-10 09:31:37 +0100 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2026-01-13 12:25:38 +0100 |
| commit | ba3588410cedb1696cfe56ebefcc4401c6d0bb36 (patch) | |
| tree | 05633b127c3c182cc91d707205931328dafd7a13 /include | |
| parent | 4a768c544f64eaa2fc7cfa91e46f43aa4aad0c40 (diff) | |
host1x: Make remove callback return void
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@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/d364fd4ec043d36ee12e46eaef98c57658884f63.1765355236.git.u.kleine-koenig@baylibre.com
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/host1x.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/host1x.h b/include/linux/host1x.h index 9fa9c30a34e6..5e7a63143a4a 100644 --- a/include/linux/host1x.h +++ b/include/linux/host1x.h @@ -380,7 +380,7 @@ struct host1x_driver { struct list_head list; int (*probe)(struct host1x_device *device); - int (*remove)(struct host1x_device *device); + void (*remove)(struct host1x_device *device); void (*shutdown)(struct host1x_device *device); }; |
