Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5e539ad authored by Kevin Hilman's avatar Kevin Hilman Committed by David Woodhouse
Browse files

[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: default avatarKevin Hilman <khilman@deeprootsystems.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 374555ae
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;