[U-Boot] [PATCH 09/27] blk: Call part_init() in the post_probe() method

Simon Glass sjg at chromium.org
Thu Sep 27 13:42:23 UTC 2018


On 23 September 2018 at 06:42, Bin Meng <bmeng.cn at gmail.com> wrote:
> 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 at gmail.com>
> ---
>
>  cmd/sata.c                        |  9 ---------
>  common/usb_storage.c              |  4 +---
>  drivers/block/blk-uclass.c        | 12 ++++++++++++
>  drivers/block/ide.c               |  2 --
>  drivers/block/sandbox.c           |  2 +-
>  drivers/mmc/mmc.c                 |  3 ---
>  drivers/nvme/nvme.c               |  1 -
>  drivers/scsi/scsi.c               |  1 -
>  lib/efi_driver/efi_block_device.c |  2 --
>  9 files changed, 14 insertions(+), 22 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list