*** empty log message ***
[yaffs/.git] / nand_ecc.c
index 84b270dba1f1c9bb9349c5a5cd98f62fead0075b..c22397b801dce8fc41da5058dca77251357c46d2 100644 (file)
@@ -4,18 +4,20 @@
  *  Copyright (C) 2000 Steven J. Hill (sjhill@cotw.com)
  *                     Toshiba America Electronics Components, Inc.
  *
- * $Id: nand_ecc.c,v 1.1 2002-05-27 18:57:25 charles Exp $
+ * $Id: nand_ecc.c,v 1.3 2002-09-27 20:50:50 charles Exp $
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation.
  *
  * This file contains an ECC algorithm from Toshiba that detects and
  * corrects 1 bit errors in a 256 byte block of data.
- *
- *
- *  Slightly hacked to fit in with YAFFS by Charles Manning.
  */
+ // Minor tweak by Charles Manning to prevent exporting symbols
+ // when compiled in with yaffs.
+
+const char *nand_ecc_c_version = "$Id: nand_ecc.c,v 1.3 2002-09-27 20:50:50 charles Exp $";
+
 #if 0
 #include <linux/types.h>
 #include <linux/kernel.h>
@@ -211,9 +213,11 @@ int nand_correct_data (u_char *dat, u_char *read_ecc, u_char *calc_ecc)
        return -1;
 }
 
-
 #if 0
 EXPORT_SYMBOL(nand_calculate_ecc);
 EXPORT_SYMBOL(nand_correct_data);
-#endif
 
+MODULE_LICENSE("GPL");
+MODULE_AUTHOR("Steven J. Hill <sjhill@cotw.com>");
+MODULE_DESCRIPTION("Generic NAND ECC support");
+#endif