diff options
author | Bin Meng | 2018-10-15 04:21:08 -0500 |
---|---|---|
committer | Simon Glass | 2018-11-14 11:16:27 -0600 |
commit | c515ee5c51618883df64ab7326fbee8911b99a97 (patch) | |
tree | 01a359785f6889b5a4646383c12984e596f84a91 | |
parent | d0851c8937067ad396f2bdafc46d0326bf3317db (diff) | |
download | u-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>
-rw-r--r-- | drivers/block/blk-uclass.c | 9 | ||||
-rw-r--r-- | include/blk.h | 10 |
2 files changed, 0 insertions, 19 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 | ||
474 | int 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 | |||
483 | int blk_get_from_parent(struct udevice *parent, struct udevice **devp) | 474 | int blk_get_from_parent(struct udevice *parent, struct udevice **devp) |
484 | { | 475 | { |
485 | struct udevice *dev; | 476 | struct udevice *dev; |
diff --git a/include/blk.h b/include/blk.h index 6af219681c..c243179ebb 100644 --- a/include/blk.h +++ b/include/blk.h | |||
@@ -357,16 +357,6 @@ int blk_create_devicef(struct udevice *parent, const char *drv_name, | |||
357 | lbaint_t lba, struct udevice **devp); | 357 | lbaint_t lba, struct udevice **devp); |
358 | 358 | ||
359 | /** | 359 | /** |
360 | * blk_prepare_device() - Prepare a block device for use | ||
361 | * | ||
362 | * This reads partition information from the device if supported. | ||
363 | * | ||
364 | * @dev: Device to prepare | ||
365 | * @return 0 if ok, -ve on error | ||
366 | */ | ||
367 | int blk_prepare_device(struct udevice *dev); | ||
368 | |||
369 | /** | ||
370 | * blk_unbind_all() - Unbind all device of the given interface type | 360 | * blk_unbind_all() - Unbind all device of the given interface type |
371 | * | 361 | * |
372 | * The devices are removed and then unbound. | 362 | * The devices are removed and then unbound. |