From e6104fde6ee694e807c19a3bb7ba52b50cfb55af Mon Sep 17 00:00:00 2001 From: colin Date: Tue, 22 Jan 2008 10:30:45 +0000 Subject: [PATCH 1/1] Conditionally define old style info structures --- yaffs_mtdif.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/yaffs_mtdif.h b/yaffs_mtdif.h index 317600c..511b017 100644 --- a/yaffs_mtdif.h +++ b/yaffs_mtdif.h @@ -18,6 +18,11 @@ #include "yaffs_guts.h" +#if (MTD_VERSION_CODE < MTD_VERSION(2,6,18)) +extern struct nand_oobinfo yaffs_oobinfo; +extern struct nand_oobinfo yaffs_noeccinfo; +#endif + int nandmtd_WriteChunkToNAND(yaffs_Device * dev, int chunkInNAND, const __u8 * data, const yaffs_Spare * spare); int nandmtd_ReadChunkFromNAND(yaffs_Device * dev, int chunkInNAND, __u8 * data, -- 2.30.2