[MTD] [NAND] davinci: drop usage of cpu_is_* macro
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Mar 20 14:59:21 EDT 2009
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d5e539ad7d8305f12d04b4a278f8cf791e3de4db
Commit: d5e539ad7d8305f12d04b4a278f8cf791e3de4db
Parent: 374555aeb64f450db04edb8c7c218d763f2a8781
Author: Kevin Hilman <khilman at deeprootsystems.com>
AuthorDate: Wed Mar 4 12:01:39 2009 -0800
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Mar 20 13:15:55 2009 +0000
[MTD] [NAND] davinci: drop usage of cpu_is_* macro
Usage of davinci-specific cpu_is macros is not allowed in drivers.
These options should be passed in through platform_data.
Signed-off-by: Kevin Hilman <khilman at deeprootsystems.com>
Cc: David Brownell <david-b at pacbell.net>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/davinci_nand.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
index 4bedd8d..4034ac9 100644
--- a/drivers/mtd/nand/davinci_nand.c
+++ b/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(struct platform_device *pdev)
/* 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;
More information about the linux-mtd-cvs
mailing list