]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bootstd: Correct creating of bootdev sibling
authorSimon Glass <sjg@chromium.org>
Sun, 30 Jul 2023 17:15:15 +0000 (11:15 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 9 Aug 2023 15:31:11 +0000 (23:31 +0800)
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>
drivers/block/ide.c

index 89201dd4d229efb9c5e6641a6da23d9a42736db2..c698f9cbd558ddb82f8f51d8e9cb84b492a3d90e 100644 (file)
@@ -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;