X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffs_flashif.c;h=f7c1998d996c3073ff0f709d77b9c25fdcc0f2be;hp=d9c7cb1ccd8709b581e6fe832307ad021f417e6d;hb=121c055437f23d9d6bc7b57d36ecf128b447013f;hpb=9131fecc79ad4e5fbdb775cdc067bc80aae5adb8 diff --git a/direct/yaffs_flashif.c b/direct/yaffs_flashif.c index d9c7cb1..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