diff options
author | Simon Glass <sjg@chromium.org> | 2014-02-27 13:25:58 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-03-17 20:05:45 -0600 |
commit | 95fac6ab4589ec0767b1eac662577866e2b2f423 (patch) | |
tree | 29519eb5d3ee96890a7b9db2c00c7e71375ad34e /disk | |
parent | 9f6044256ecb3aa2d62f1f26ca564d0e55e19458 (diff) | |
download | u-boot-95fac6ab4589ec0767b1eac662577866e2b2f423.zip u-boot-95fac6ab4589ec0767b1eac662577866e2b2f423.tar.gz u-boot-95fac6ab4589ec0767b1eac662577866e2b2f423.tar.bz2 |
sandbox: Use os functions to read host device tree
At present we use U-Boot's filesystem layer to read the sandbox device tree,
but this is problematic since it relies on a temporary feauture added
there. Since we plan to implement proper block layer support for sandbox,
change this code to use the os layer functions instead. Also use the new
fdt_create_empty_tree() instead of our own code.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'disk')
-rw-r--r-- | disk/part.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/disk/part.c b/disk/part.c index 6941033..b8c6aac 100644 --- a/disk/part.c +++ b/disk/part.c @@ -452,23 +452,6 @@ int get_device_and_partition(const char *ifname, const char *dev_part_str, int part; disk_partition_t tmpinfo; - /* - * For now, we have a special case for sandbox, since there is no - * real block device support. - */ - if (0 == strcmp(ifname, "host")) { - *dev_desc = NULL; - info->start = info->size = info->blksz = 0; - info->bootable = 0; - strcpy((char *)info->type, BOOT_PART_TYPE); - strcpy((char *)info->name, "Sandbox host"); -#ifdef CONFIG_PARTITION_UUIDS - info->uuid[0] = 0; -#endif - - return 0; - } - /* If no dev_part_str, use bootdevice environment variable */ if (!dev_part_str || !strlen(dev_part_str) || !strcmp(dev_part_str, "-")) |