blk: Call part_init() in the post_probe() method
authorBin Meng <bmeng.cn@gmail.com>
Mon, 15 Oct 2018 09:21:07 +0000 (02:21 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:27 +0000 (09:16 -0800)
commitd0851c8937067ad396f2bdafc46d0326bf3317db
treeac5d2b7aa32a96f248b61b5559aa3e7fc961e951
parentf26ce03b444ac97448eca0cc58071f5fa8ffc3bd
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>
cmd/sata.c
common/usb_storage.c
drivers/block/blk-uclass.c
drivers/block/ide.c
drivers/block/sandbox.c
drivers/mmc/mmc.c
drivers/nvme/nvme.c
drivers/scsi/scsi.c
lib/efi_driver/efi_block_device.c