Skip to contentSkip to conversation

mtd: nand: drop usage of cpu_is_* macro

PATCH In review [email protected] 1 participant 1 message Mar 4, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 12/15 mtd: nand: drop usage of cpu_is_* macro

From: Kevin Hilman <[email protected]>

Usage of davinci-specific cpu_is macros is not allowed in drivers. These options should be passed in through platform_data.

Cc David Brownell <[email protected]>
Cc David Woodhouse <[email protected]>

---

 drivers/mtd/nand/davinci_nand.c |    3 ---
 1 file changed, 3 deletions(-)
drivers/mtd/nand/davinci_nand.c renamed from drivers/mtd/nand/davinci_nand.c~mtd-nand-drop-usage-of-cpu_is_-macro +0 -3
diff -puN drivers/mtd/nand/davinci_nand.c~mtd-nand-drop-usage-of-cpu_is_-macro drivers/mtd/nand/davinci_nand.c
@@ -33,7 +33,6 @@
 #include <linux/mtd/nand.h>
 #include <linux/mtd/partitions.h>
 
-#include <mach/cpu.h>
 #include <mach/nand.h>
 
 #include <asm/mach-types.h>
@@ -392,8 +391,6 @@ static int __init nand_davinci_probe(str
 	/* use board-specific ECC config; else, the best available */
 	if (pdata)
 		ecc_mode = pdata->ecc_mode;
-	else if (cpu_is_davinci_dm355())
-		ecc_mode = NAND_ECC_HW_SYNDROME;
 	else
 		ecc_mode = NAND_ECC_HW;
 

_