mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
efi: Rename UCLASS_EFI and IF_TYPE_EFI
These names are better used for access to devices provided by an EFI layer. Use EFI_LOADER instead here, since these are only available in U-Boot's EFI_LOADER layer. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
f9b51dcf29
commit
2abd8d1c99
6 changed files with 16 additions and 16 deletions
|
@ -147,7 +147,7 @@ static int efi_bl_bind(efi_handle_t handle, void *interface)
|
|||
if (!obj)
|
||||
return -ENOENT;
|
||||
|
||||
devnum = blk_find_max_devnum(IF_TYPE_EFI);
|
||||
devnum = blk_find_max_devnum(IF_TYPE_EFI_LOADER);
|
||||
if (devnum == -ENODEV)
|
||||
devnum = 0;
|
||||
else if (devnum < 0)
|
||||
|
@ -159,8 +159,8 @@ static int efi_bl_bind(efi_handle_t handle, void *interface)
|
|||
sprintf(name, "efiblk#%d", devnum);
|
||||
|
||||
/* Create driver model udevice for the EFI block io device */
|
||||
ret = blk_create_device(parent, "efi_blk", name, IF_TYPE_EFI, devnum,
|
||||
io->media->block_size,
|
||||
ret = blk_create_device(parent, "efi_blk", name, IF_TYPE_EFI_LOADER,
|
||||
devnum, io->media->block_size,
|
||||
(lbaint_t)io->media->last_block, &bdev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
@ -209,6 +209,6 @@ static const struct efi_driver_ops driver_ops = {
|
|||
/* Identify as EFI driver */
|
||||
U_BOOT_DRIVER(efi_block) = {
|
||||
.name = "EFI block driver",
|
||||
.id = UCLASS_EFI,
|
||||
.id = UCLASS_EFI_LOADER,
|
||||
.ops = &driver_ops,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue