diff options
author | Simon Glass <sjg@chromium.org> | 2023-07-30 11:15:15 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2023-08-09 23:31:11 +0800 |
commit | 2d5b5a9cdb7dc0646ca51206dde509f724bf6403 (patch) | |
tree | 80ef36e314e0d3b3d60f021a930318ebae3fed46 /drivers | |
parent | d7d78576bbfddd52b258771c9e926bd51b50d91e (diff) | |
download | u-boot-2d5b5a9cdb7dc0646ca51206dde509f724bf6403.tar.gz u-boot-2d5b5a9cdb7dc0646ca51206dde509f724bf6403.tar.bz2 u-boot-2d5b5a9cdb7dc0646ca51206dde509f724bf6403.zip |
bootstd: Correct creating of bootdev sibling
Use the correct function here, since there may be multiple IDE devices
available.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/block/ide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/ide.c b/drivers/block/ide.c index 89201dd4d2..c698f9cbd5 100644 --- a/drivers/block/ide.c +++ b/drivers/block/ide.c @@ -1059,9 +1059,9 @@ static int ide_probe(struct udevice *udev) desc->lba48 = pdesc.lba48; desc->type = pdesc.type; - ret = bootdev_setup_for_dev(udev, "ide_bootdev"); + ret = bootdev_setup_for_sibling_blk(blk, "ide_bootdev"); if (ret) - return log_msg_ret("bootdev", ret); + return log_msg_ret("bd", ret); } return 0; |