ARM: uniphier: move PLLCTRL register macros to each SoC .c file
[oweals/u-boot.git] / fs / sandbox / sandboxfs.c
index 5acfc03704a9b35d9f823637ffac86e06f051208..ca8026133708d2e7083a004e92a952f19c6a66f9 100644 (file)
@@ -8,10 +8,10 @@
 #include <fs.h>
 #include <os.h>
 
-int sandbox_fs_set_blk_dev(block_dev_desc_t *rbdd, disk_partition_t *info)
+int sandbox_fs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info)
 {
        /*
-        * Only accept a NULL block_dev_desc_t for the sandbox, which is when
+        * Only accept a NULL struct blk_desc for the sandbox, which is when
         * hostfs interface is used
         */
        return rbdd != NULL;
@@ -88,14 +88,16 @@ int sandbox_fs_ls(const char *dirname)
 
        ret = os_dirent_ls(dirname, &head);
        if (ret)
-               return ret;
+               goto out;
 
        for (node = head; node; node = node->next) {
                printf("%s %10lu %s\n", os_dirent_get_typename(node->type),
                       node->size, node->name);
        }
+out:
+       os_dirent_free(head);
 
-       return 0;
+       return ret;
 }
 
 int sandbox_fs_exists(const char *filename)