|
@@ -34,7 +34,7 @@
|
|
#include "malloc.h"
|
|
#include "malloc.h"
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-unsigned yaffs_traceMask = 0xFFFFFFFF;
|
|
|
|
|
|
+unsigned yaffs_traceMask = 0x0; /* Disable logging */
|
|
static int yaffs_errno = 0;
|
|
static int yaffs_errno = 0;
|
|
|
|
|
|
void yaffsfs_SetError(int err)
|
|
void yaffsfs_SetError(int err)
|
|
@@ -121,6 +121,9 @@ int yaffs_StartUp(void)
|
|
yaffs_Device *flashDev = calloc(1, sizeof(yaffs_Device));
|
|
yaffs_Device *flashDev = calloc(1, sizeof(yaffs_Device));
|
|
yaffsfs_config[0].dev = flashDev;
|
|
yaffsfs_config[0].dev = flashDev;
|
|
|
|
|
|
|
|
+ /* store the mtd device for later use */
|
|
|
|
+ flashDev->genericDevice = mtd;
|
|
|
|
+
|
|
// Stuff to configure YAFFS
|
|
// Stuff to configure YAFFS
|
|
// Stuff to initialise anything special (eg lock semaphore).
|
|
// Stuff to initialise anything special (eg lock semaphore).
|
|
yaffsfs_LocalInitialisation();
|
|
yaffsfs_LocalInitialisation();
|