blk: Drop blk_prepare_device()
authorBin Meng <bmeng.cn@gmail.com>
Mon, 15 Oct 2018 09:21:08 +0000 (02:21 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:27 +0000 (09:16 -0800)
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>
drivers/block/blk-uclass.c
include/blk.h

index 95e7b540a58758531fe06449e627e9f2cf3c3a67..3f00ff8ede0a2cbc8481c5caa9b700750f0813e5 100644 (file)
@@ -471,15 +471,6 @@ unsigned long blk_derase(struct blk_desc *block_dev, lbaint_t start,
        return ops->erase(dev, start, blkcnt);
 }
 
-int blk_prepare_device(struct udevice *dev)
-{
-       struct blk_desc *desc = dev_get_uclass_platdata(dev);
-
-       part_init(desc);
-
-       return 0;
-}
-
 int blk_get_from_parent(struct udevice *parent, struct udevice **devp)
 {
        struct udevice *dev;
index 6af219681cd1b52caee57fbb5dc07511933ed165..c243179ebbe83b0f8f20f6f232e413fbb576c72d 100644 (file)
@@ -356,16 +356,6 @@ int blk_create_devicef(struct udevice *parent, const char *drv_name,
                       const char *name, int if_type, int devnum, int blksz,
                       lbaint_t lba, struct udevice **devp);
 
-/**
- * blk_prepare_device() - Prepare a block device for use
- *
- * This reads partition information from the device if supported.
- *
- * @dev:       Device to prepare
- * @return 0 if ok, -ve on error
- */
-int blk_prepare_device(struct udevice *dev);
-
 /**
  * blk_unbind_all() - Unbind all device of the given interface type
  *