diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2018-10-15 02:21:07 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-11-14 09:16:27 -0800 |
commit | d0851c8937067ad396f2bdafc46d0326bf3317db (patch) | |
tree | ac5d2b7aa32a96f248b61b5559aa3e7fc961e951 /drivers/nvme/nvme.c | |
parent | f26ce03b444ac97448eca0cc58071f5fa8ffc3bd (diff) | |
download | u-boot-d0851c8937067ad396f2bdafc46d0326bf3317db.zip u-boot-d0851c8937067ad396f2bdafc46d0326bf3317db.tar.gz u-boot-d0851c8937067ad396f2bdafc46d0326bf3317db.tar.bz2 |
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 'drivers/nvme/nvme.c')
-rw-r--r-- | drivers/nvme/nvme.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index eb6fded..1ee0a0a 100644 --- a/drivers/nvme/nvme.c +++ b/drivers/nvme/nvme.c @@ -664,7 +664,6 @@ static int nvme_blk_probe(struct udevice *udev) sprintf(desc->vendor, "0x%.4x", pplat->vendor); memcpy(desc->product, ndev->serial, sizeof(ndev->serial)); memcpy(desc->revision, ndev->firmware_rev, sizeof(ndev->firmware_rev)); - part_init(desc); return 0; } |