diff options
author | Uwe Kleine-König <uwe@kleine-koenig.org> | 2021-02-06 01:28:42 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2021-02-17 06:45:13 +0300 |
commit | 0d519e0d52ee7c532d4018b90cd0b042d374c06d (patch) | |
tree | 695200849ef56292e0afc2aa804a87ba82186cde /drivers/dax/bus.h | |
parent | c80b53204d6ee8f70e5f4e846bc0e62dda64aee0 (diff) | |
download | linux-0d519e0d52ee7c532d4018b90cd0b042d374c06d.tar.xz |
dax-device: Make remove callback return void
The driver core ignores the return value of struct bus_type::remove()
because there is only little that can be done. To simplify the quest to
make this function return void, let struct dax_device_driver::remove()
return void, too. All users already unconditionally return 0, this commit
makes it obvious that returning an error code isn't intended.
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Link: https://lore.kernel.org/r/20210205222842.34896-6-uwe@kleine-koenig.org
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dax/bus.h')
-rw-r--r-- | drivers/dax/bus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dax/bus.h b/drivers/dax/bus.h index 72b92f95509f..1e946ad7780a 100644 --- a/drivers/dax/bus.h +++ b/drivers/dax/bus.h @@ -39,7 +39,7 @@ struct dax_device_driver { struct list_head ids; int match_always; int (*probe)(struct dev_dax *dev); - int (*remove)(struct dev_dax *dev); + void (*remove)(struct dev_dax *dev); }; int __dax_driver_register(struct dax_device_driver *dax_drv, |