X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffs_flashif.c;h=95ac613f13f7dc97b853db39d9258d1b8c7a51ff;hp=b7ee482d7ee49fcbdada56ea797961a71523e618;hb=137f935f6d622bffdef2fece0c5194e85f5174e9;hpb=e33554a67753729f6b74677473cf0ec3b8d35a7e diff --git a/direct/yaffs_flashif.c b/direct/yaffs_flashif.c index b7ee482..95ac613 100644 --- a/direct/yaffs_flashif.c +++ b/direct/yaffs_flashif.c @@ -19,7 +19,6 @@ const char *yaffs_flashif_c_version = "$Id: yaffs_flashif.c,v 1.3 2007-02-14 01: #include "yaffs_flashif.h" #include "yaffs_guts.h" -#include "devextras.h" #define SIZE_IN_MB 16 @@ -31,7 +30,7 @@ const char *yaffs_flashif_c_version = "$Id: yaffs_flashif.c,v 1.3 2007-02-14 01: typedef struct { - __u8 data[528]; // Data + spare + u8 data[528]; // Data + spare } yflash_Page; typedef struct @@ -50,7 +49,7 @@ typedef struct static yflash_Device ramdisk; -static int CheckInit(yaffs_Device *dev) +static int CheckInit(struct yaffs_dev *dev) { static int initialised = 0; @@ -68,7 +67,7 @@ static int CheckInit(yaffs_Device *dev) ramdisk.nBlocks = (SIZE_IN_MB * 1024 * 1024)/(16 * 1024); - ramdisk.block = YMALLOC(sizeof(yflash_Block *) * ramdisk.nBlocks); + ramdisk.block = kmalloc(sizeof(yflash_Block *) * ramdisk.nBlocks); if(!ramdisk.block) return 0; @@ -79,7 +78,7 @@ static int CheckInit(yaffs_Device *dev) for(i=0; i