]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
dm: sandbox: Drop the host_get_dev() function
authorSimon Glass <sjg@chromium.org>
Sun, 1 May 2016 17:36:20 +0000 (11:36 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
This function is implemented by the legacy block functions now. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
disk/part.c
drivers/block/sandbox.c
include/part.h

index 28c870664d63435f8adcfd3392895f015177aab8..e635d90864c4b5788a418eb1138c4ebaa874ef7d 100644 (file)
@@ -44,7 +44,7 @@ const struct block_drvr block_drvr[] = {
        { .name = "ace", },
 #endif
 #if defined(CONFIG_SANDBOX)
-       { .name = "host", .get_dev = host_get_dev, },
+       { .name = "host", },
 #endif
        { },
 };
index 2b6a89333b5a66caeb848c37fe080ab9e1cf1a3a..ac28f834724490b23670ac3a3361310f53ee5c0a 100644 (file)
@@ -217,16 +217,6 @@ int host_get_dev_err(int devnum, struct blk_desc **blk_devp)
        return 0;
 }
 
-struct blk_desc *host_get_dev(int dev)
-{
-       struct blk_desc *blk_dev;
-
-       if (host_get_dev_err(dev, &blk_dev))
-               return NULL;
-
-       return blk_dev;
-}
-
 #ifdef CONFIG_BLK
 static const struct blk_ops sandbox_host_blk_ops = {
        .read   = host_block_read,
index 3b59139f1476e6b25073bc4b04ccb14e0df4aa10..47f5bafd632c64347eae2bcc02947a3ad94f568b 100644 (file)
@@ -92,7 +92,6 @@ struct blk_desc *blk_get_dev(const char *ifname, int dev);
  */
 int mmc_select_hwpart(int dev_num, int hwpart);
 struct blk_desc *mg_disk_get_dev(int dev);
-struct blk_desc *host_get_dev(int dev);
 int host_get_dev_err(int dev, struct blk_desc **blk_devp);
 
 /* disk/part.c */
@@ -171,7 +170,6 @@ static inline struct blk_desc *blk_get_dev(const char *ifname, int dev)
 { return NULL; }
 static inline int mmc_select_hwpart(int dev_num, int hwpart) { return -1; }
 static inline struct blk_desc *mg_disk_get_dev(int dev) { return NULL; }
-static inline struct blk_desc *host_get_dev(int dev) { return NULL; }
 
 static inline int part_get_info(struct blk_desc *dev_desc, int part,
                                disk_partition_t *info) { return -1; }