]> git.sur5r.net Git - u-boot/blobdiff - fs/yaffs2/yaffs_mtdif.c
mpc5200: digsy_mtc: fix detection of Coral-PA
[u-boot] / fs / yaffs2 / yaffs_mtdif.c
index 031827e45be34237524a538111b0ecc4d6c65971..d0e16d088ef07727014525252471b7c3f57c3671 100644 (file)
@@ -11,6 +11,9 @@
  * published by the Free Software Foundation.
  */
 
+/* XXX U-BOOT XXX */
+#include <common.h>
+
 const char *yaffs_mtdif_c_version =
     "$Id: yaffs_mtdif.c,v 1.19 2007/02/14 01:09:06 wookey Exp $";
 
@@ -172,7 +175,7 @@ int nandmtd_ReadChunkFromNAND(yaffs_Device * dev, int chunkInNAND, __u8 * data,
        __u8 *spareAsBytes = (__u8 *) spare;
 
        if (data && spare) {
-               if (dev->useNANDECC) {  
+               if (dev->useNANDECC) {
                        /* Careful, this call adds 2 ints */
                        /* to the end of the spare data.  Calling function */
                        /* should allocate enough memory for spare, */
@@ -224,7 +227,10 @@ int nandmtd_EraseBlockInNAND(yaffs_Device * dev, int blockNumber)
 
        /* Todo finish off the ei if required */
 
+/* XXX U-BOOT XXX */
+#if 0
        sema_init(&dev->sem, 0);
+#endif
 
        retval = mtd->erase(mtd, &ei);
 
@@ -238,4 +244,3 @@ int nandmtd_InitialiseNAND(yaffs_Device * dev)
 {
        return YAFFS_OK;
 }
-