summaryrefslogtreecommitdiffstats
path: root/fs/yaffs2/direct/yaffsfs.c
diff options
context:
space:
mode:
authorWilliam Juul <william.juul@datarespons.no>2007-11-15 12:23:57 +0100
committerScott Wood <scottwood@freescale.com>2008-08-12 11:31:19 -0500
commit90ef117b68387d66763291af0117677644166611 (patch)
tree829e4954f6d1b0976734c0d2ef2b2bbd173d7572 /fs/yaffs2/direct/yaffsfs.c
parent0e8cc8bd92257da2e1df88cbc985e166e472ce61 (diff)
downloadbootable_bootloader_goldelico_gta04-90ef117b68387d66763291af0117677644166611.zip
bootable_bootloader_goldelico_gta04-90ef117b68387d66763291af0117677644166611.tar.gz
bootable_bootloader_goldelico_gta04-90ef117b68387d66763291af0117677644166611.tar.bz2
Incorporate yaffs2 into U-boot
To use YAFFS2 define CONFIG_YAFFS2 Signed-off-by: William Juul <william.juul@tandberg.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'fs/yaffs2/direct/yaffsfs.c')
-rw-r--r--fs/yaffs2/direct/yaffsfs.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/fs/yaffs2/direct/yaffsfs.c b/fs/yaffs2/direct/yaffsfs.c
index a8519c2..f62c952 100644
--- a/fs/yaffs2/direct/yaffsfs.c
+++ b/fs/yaffs2/direct/yaffsfs.c
@@ -11,12 +11,20 @@
* published by the Free Software Foundation.
*/
+/* XXX U-BOOT XXX */
+#include <common.h>
+#include <malloc.h>
+
#include "yaffsfs.h"
#include "yaffs_guts.h"
#include "yaffscfg.h"
-#include <string.h> // for memset
#include "yportenv.h"
+/* XXX U-BOOT XXX */
+#if 0
+#include <string.h> // for memset
+#endif
+
#define YAFFSFS_MAX_SYMLINK_DEREFERENCES 5
#ifndef NULL
@@ -925,7 +933,7 @@ int yaffs_fstat(int fd, struct yaffs_stat *buf)
static int yaffsfs_DoChMod(yaffs_Object *obj,mode_t mode)
{
- int result;
+ int result = YAFFS_FAIL;
if(obj)
{
@@ -1158,8 +1166,6 @@ void yaffs_initialise(yaffsfs_DeviceConfiguration *cfgList)
cfg->dev->removeObjectCallback = yaffsfs_RemoveObjectCallback;
cfg++;
}
-
-
}
@@ -1502,4 +1508,3 @@ int yaffs_DumpDevStruct(const char *path)
}
return 0;
}
-