[PATCH - Omapzoom][NAND] Fix selection of sw/hw ecc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Removing unnecessary '#ifdef' in 'nand/omap2.c' and changing hwecc config
option from 'int' to 'bool' in 'nand/Kconfig'.

Because of 'int' option hw ecc was always used even if sw ecc had been selected.

Signed-off-by: Vimal Singh <vimalsingh@xxxxxx>

---
 drivers/mtd/nand/Kconfig |    6 ++----
 drivers/mtd/nand/omap2.c |    4 ----
 2 files changed, 2 insertions(+), 8 deletions(-)

Index: omapkernel/drivers/mtd/nand/Kconfig
===================================================================
--- omapkernel.orig/drivers/mtd/nand/Kconfig	2008-10-24 11:24:52.000000000 +0530
+++ omapkernel/drivers/mtd/nand/Kconfig	2008-10-29 15:57:03.000000000 +0530
@@ -75,14 +75,12 @@
           Support for NAND flash on Texas Instruments OMAP2 and OMAP3 platforms.

 config MTD_NAND_OMAP_HWECC
-         int "The ECC computation logic (0 = software ecc, 1 = hardware ecc)"
+         bool "The ECC computation logic (y = hardware ecc, n = software ecc)"
          depends on MTD_NAND && MTD_NAND_OMAP2
-         default "0"
+         default y
          help
            The ECC compuatation for the data to be written/read can be either by
            software or omap has Hw ecc engine which calculates it.
-           MTD_NAND_OMAP_HWECC = 1 which enables the hw ecc
-           MTD_NAND_OMAP_HWECC = 0, enables software ecc

 config MTD_NAND_OMAP
 	tristate "NAND Flash device on OMAP H3/H2/P2 boards"
Index: omapkernel/drivers/mtd/nand/omap2.c
===================================================================
--- omapkernel.orig/drivers/mtd/nand/omap2.c	2008-10-24 11:24:52.000000000 +0530
+++ omapkernel/drivers/mtd/nand/omap2.c	2008-10-29 16:19:48.000000000 +0530
@@ -111,10 +111,6 @@
 static const char *part_probes[] = { "cmdlinepart", NULL };
 #endif

-#ifndef MTD_NAND_OMAP_HWECC
-#define MTD_NAND_OMAP_HWECC   0
-#endif
-
 struct omap_nand_info {
 	struct nand_hw_control		controller;
 	struct omap_nand_platform_data	*pdata;


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux