bootstd: Rename bootdev_setup_sibling_blk()
This name is a little confusing since it suggests that it sets up the sibling block device. In fact it sets up a bootdev for it. Rename the function to make this clearer. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
This commit is contained in:
@@ -248,7 +248,7 @@ static int virtio_uclass_post_probe(struct udevice *udev)
|
||||
device_set_name_alloced(vdev);
|
||||
|
||||
if (uc_priv->device == VIRTIO_ID_BLOCK && !IS_ENABLED(CONFIG_SANDBOX)) {
|
||||
ret = bootdev_setup_sibling_blk(vdev, "virtio_bootdev");
|
||||
ret = bootdev_setup_for_sibling_blk(vdev, "virtio_bootdev");
|
||||
if (ret)
|
||||
return log_msg_ret("bootdev", ret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user