X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffs_flashif.c;h=f7c1998d996c3073ff0f709d77b9c25fdcc0f2be;hp=79732a1f435e018df33dfed2e0b0c85da3c31c41;hb=ce0a5fb9849b6dc0d1347709b28d3a34eefec662;hpb=7396445d7d0d13469b9505791114b9dc6b76ffe4 diff --git a/direct/yaffs_flashif.c b/direct/yaffs_flashif.c index 79732a1..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 @@ -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_dev_t *dev) +static int CheckInit(struct yaffs_dev *dev) { static int initialised = 0; @@ -68,7 +67,7 @@ static int CheckInit(yaffs_dev_t *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_dev_t *dev) for(i=0; i