mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user