X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffs_flashif.c;h=f7c1998d996c3073ff0f709d77b9c25fdcc0f2be;hp=5740bbee1d62a581c7f177951a1194a6102bd9c7;hb=ce0a5fb9849b6dc0d1347709b28d3a34eefec662;hpb=976dbeae825b18e6759f3903073a6784248cc244 diff --git a/direct/yaffs_flashif.c b/direct/yaffs_flashif.c index 5740bbe..f7c1998 100644 --- a/direct/yaffs_flashif.c +++ b/direct/yaffs_flashif.c @@ -1,7 +1,7 @@ /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002-2010 Aleph One Ltd. + * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -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 @@ -68,7 +67,7 @@ static int CheckInit(struct yaffs_dev *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(struct yaffs_dev *dev) for(i=0; i