X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_yaffs1.c;h=14400215bd88b1801bf0759a9170785328be334e;hp=0cdc8c80c108017ef351b8b51d29fd922b6d3480;hb=9fa1f71bebff48a2f8f99f9b64b649fb23f4960e;hpb=b4d5215f18486403d16f2e776000e43eba052f40 diff --git a/yaffs_yaffs1.c b/yaffs_yaffs1.c index 0cdc8c8..1440021 100644 --- a/yaffs_yaffs1.c +++ b/yaffs_yaffs1.c @@ -1,8 +1,7 @@ /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002-2011 Aleph One Ltd. - * for Toby Churchill Ltd and Brightstar Engineering + * Copyright (C) 2002-2018 Aleph One Ltd. * * Created by Charles Manning * @@ -21,6 +20,9 @@ int yaffs1_scan(struct yaffs_dev *dev) { +#ifdef CONFIG_YAFFS_NO_YAFFS1 + return YAFFS_FAIL; +#else struct yaffs_ext_tags tags; u32 blk; int result; @@ -421,4 +423,5 @@ int yaffs1_scan(struct yaffs_dev *dev) yaffs_trace(YAFFS_TRACE_SCAN, "yaffs1_scan ends"); return YAFFS_OK; +#endif }