mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +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:
@@ -226,9 +226,7 @@ static int usb_stor_probe_device(struct usb_device *udev)
|
||||
blkdev->lun = lun;
|
||||
|
||||
ret = usb_stor_get_info(udev, data, blkdev);
|
||||
if (ret == 1)
|
||||
ret = blk_prepare_device(dev);
|
||||
if (!ret) {
|
||||
if (ret == 1) {
|
||||
usb_max_devs++;
|
||||
debug("%s: Found device %p\n", __func__, udev);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user