summaryrefslogtreecommitdiff
path: root/lib/efi_driver
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2018-10-15 12:21:07 +0300
committerSimon Glass <sjg@chromium.org>2018-11-14 20:16:27 +0300
commitd0851c8937067ad396f2bdafc46d0326bf3317db (patch)
treeac5d2b7aa32a96f248b61b5559aa3e7fc961e951 /lib/efi_driver
parentf26ce03b444ac97448eca0cc58071f5fa8ffc3bd (diff)
downloadu-boot-d0851c8937067ad396f2bdafc46d0326bf3317db.tar.xz
blk: Call part_init() in the post_probe() method
part_init() is currently called in every DM BLK driver, either in its bind() or probe() method. However we can use the BLK uclass driver's post_probe() method to do it automatically. Update all DM BLK drivers to adopt this change. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/efi_driver')
-rw-r--r--lib/efi_driver/efi_block_device.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/efi_driver/efi_block_device.c b/lib/efi_driver/efi_block_device.c
index 7b71b4dd2e..3f147cf608 100644
--- a/lib/efi_driver/efi_block_device.c
+++ b/lib/efi_driver/efi_block_device.c
@@ -173,8 +173,6 @@ static int efi_bl_bind(efi_handle_t handle, void *interface)
return ret;
EFI_PRINT("%s: block device '%s' created\n", __func__, bdev->name);
- ret = blk_prepare_device(bdev);
-
/* Create handles for the partions of the block device */
disks = efi_bl_bind_partitions(handle, bdev);
EFI_PRINT("Found %d partitions\n", disks);