From 523109e39ed14c0153c7947ad7a8f31a0917df93 Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Fri, 28 May 2010 16:30:43 +1200 Subject: [PATCH] yaffs: Clean up yaffs direct configuration Clean up some stale comments. Signed-off-by: Charles Manning --- direct/yaffscfg2k.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/direct/yaffscfg2k.c b/direct/yaffscfg2k.c index 07c1df3..781f34b 100644 --- a/direct/yaffscfg2k.c +++ b/direct/yaffscfg2k.c @@ -97,14 +97,7 @@ void yaffsfs_LocalInitialisation(void) // Define locking semaphore. } -// Configuration for: -// /ram 2MB ramdisk -// /boot 2MB boot disk (flash) -// /flash 14MB flash disk (flash) -// NB Though /boot and /flash occupy the same physical device they -// are still disticnt "yaffs_Devices. You may think of these as "partitions" -// using non-overlapping areas in the same device. -// +// Configuration #include "yaffs_ramdisk.h" #include "yaffs_flashif.h" @@ -112,7 +105,6 @@ void yaffsfs_LocalInitialisation(void) #include "yaffs_nandemul2k.h" static yaffs_Device ram1Dev; -static yaffs_Device nand2; static yaffs_Device flashDev; static yaffs_Device ram2kDev; static yaffs_Device m18_1Dev; @@ -123,7 +115,7 @@ static yaffsfs_DeviceConfiguration yaffsfs_config[] = { { "/M18-1", &m18_1Dev}, { "/yaffs2", &flashDev}, { "/ram2k", &ram2kDev}, - {(void *)0,(void *)0} /* Null entry to terminate list */ + { NULL, NULL } /* Null entry to terminate list */ }; @@ -166,9 +158,7 @@ int yaffs_StartUp(void) m18_1Dev.param.deinitialiseNAND = ynorif1_DeinitialiseNAND; - // /yaffs2 - // Set this puppy up to use - // the file emulation space as + // /yaffs2 yaffs2 file emulation // 2kpage/64chunk per block // memset(&flashDev,0,sizeof(flashDev)); -- 2.30.2