]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
[MTD] [NAND] davinci: drop usage of cpu_is_* macro
authorKevin Hilman <khilman@deeprootsystems.com>
Wed, 4 Mar 2009 20:01:39 +0000 (12:01 -0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 20 Mar 2009 13:15:55 +0000 (13:15 +0000)
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@deeprootsystems.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/davinci_nand.c

index 4bedd8dec61e09db5941e9b7c0825955f142b9d5..4034ac94504188f84c5b184f461c08bc1c9ee2bb 100644 (file)
@@ -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;