mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
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>
This commit is contained in:
committed by
Jens Axboe
parent
dd2e31afba
commit
aa5f6ed8c2
@@ -635,7 +635,7 @@ void __init prepare_namespace(void)
|
||||
if ((ROOT_DEV == 0) && root_wait) {
|
||||
printk(KERN_INFO "Waiting for root device %s...\n",
|
||||
saved_root_name);
|
||||
while (driver_probe_done() != 0 ||
|
||||
while (!driver_probe_done() ||
|
||||
(ROOT_DEV = name_to_dev_t(saved_root_name)) == 0)
|
||||
msleep(5);
|
||||
async_synchronize_full();
|
||||
|
Reference in New Issue
Block a user