Skip to content

Commit

Permalink
[MTD] [NAND] davinci: drop usage of cpu_is_* macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kevin Hilman authored and David Woodhouse committed Mar 20, 2009
1 parent 374555a commit d5e539a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/mtd/nand/davinci_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit d5e539a

Please sign in to comment.