diff options
author | Christoph Hellwig <hch@lst.de> | 2023-05-31 14:55:12 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-06-05 10:55:20 -0600 |
commit | aa5f6ed8c21ec1aa5fd688118d8d5cd87c5ffc1d (patch) | |
tree | 5698e9d69ce818c563c6589b46f2367e644bf2ac /include/linux/device/driver.h | |
parent | dd2e31afba9e3a3107aa202726b6199c55075f59 (diff) |
driver core: return bool from driver_probe_done
bool is the most sensible return value for a yes/no return. Also
add __init as this funtion is only called from the early boot code.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20230531125535.676098-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/device/driver.h')
-rw-r--r-- | include/linux/device/driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/device/driver.h b/include/linux/device/driver.h index c244267a6744..7738f458995f 100644 --- a/include/linux/device/driver.h +++ b/include/linux/device/driver.h @@ -126,7 +126,7 @@ int __must_check driver_register(struct device_driver *drv); void driver_unregister(struct device_driver *drv); struct device_driver *driver_find(const char *name, const struct bus_type *bus); -int driver_probe_done(void); +bool __init driver_probe_done(void); void wait_for_device_probe(void); void __init wait_for_init_devices_probe(void); |