aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Meng2018-10-15 04:21:08 -0500
committerSimon Glass2018-11-14 11:16:27 -0600
commitc515ee5c51618883df64ab7326fbee8911b99a97 (patch)
tree01a359785f6889b5a4646383c12984e596f84a91 /drivers
parentd0851c8937067ad396f2bdafc46d0326bf3317db (diff)
downloadu-boot-c515ee5c51618883df64ab7326fbee8911b99a97.tar.gz
u-boot-c515ee5c51618883df64ab7326fbee8911b99a97.tar.xz
u-boot-c515ee5c51618883df64ab7326fbee8911b99a97.zip
blk: Drop blk_prepare_device()
With the post_probe() changes, this API is no longer needed. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/blk-uclass.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c
index 95e7b540a5..3f00ff8ede 100644
--- a/drivers/block/blk-uclass.c
+++ b/drivers/block/blk-uclass.c
@@ -471,15 +471,6 @@ unsigned long blk_derase(struct blk_desc *block_dev, lbaint_t start,
471 return ops->erase(dev, start, blkcnt); 471 return ops->erase(dev, start, blkcnt);
472} 472}
473 473
474int blk_prepare_device(struct udevice *dev)
475{
476 struct blk_desc *desc = dev_get_uclass_platdata(dev);
477
478 part_init(desc);
479
480 return 0;
481}
482
483int blk_get_from_parent(struct udevice *parent, struct udevice **devp) 474int blk_get_from_parent(struct udevice *parent, struct udevice **devp)
484{ 475{
485 struct udevice *dev; 476 struct udevice *dev;