]> git.sur5r.net Git - u-boot/blobdiff - fs/sandbox/sandboxfs.c
Merge branch 'next'
[u-boot] / fs / sandbox / sandboxfs.c
index a920bc087712ff289c65eec948f0f234229f9f5c..2703eed2088b44164d03c6ab5e4d6904c226e28a 100644 (file)
@@ -8,9 +8,13 @@
 #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)
 {
-       return 0;
+       /*
+        * Only accept a NULL struct blk_desc for the sandbox, which is when
+        * hostfs interface is used
+        */
+       return rbdd != NULL;
 }
 
 int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer,