summaryrefslogtreecommitdiff
path: root/drivers/mtd/devices
diff options
context:
space:
mode:
authorLily Zhang <r58066@freescale.com>2010-07-01 14:55:38 +0800
committerLily Zhang <r58066@freescale.com>2010-07-05 09:19:53 +0800
commitaae61f5a219288241d0ee8ba54e8305a6769cb3c (patch)
tree72a3cf95897725c3499acbbb1b0d151d0cd713c2 /drivers/mtd/devices
parent33391f8b0a2ccda3a27d95dfe67846d5c60666f7 (diff)
ENGR00124795 SPI NOR: uniform include header file
The default partitions are missing in MX53 SPI NOR MTD. It's because spi nor driver and mx53 msl include different header files. It causes struct definitions are different. For i.MX SPI nor driver, need to use asm/mach/flash.h by aligning with NAND driver. Signed-off-by: Lily Zhang <r58066@freescale.com>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r--drivers/mtd/devices/mxc_dataflash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/devices/mxc_dataflash.c b/drivers/mtd/devices/mxc_dataflash.c
index ab75d743a05b..0ed701d6778c 100644
--- a/drivers/mtd/devices/mxc_dataflash.c
+++ b/drivers/mtd/devices/mxc_dataflash.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2009 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved.
* (c) 2005 MontaVista Software, Inc.
*
* This code is based on mtd_dataflash.c by adding FSL spi access.
@@ -22,10 +22,10 @@
#include <linux/err.h>
#include <linux/spi/spi.h>
-#include <linux/spi/flash.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
+#include <asm/mach/flash.h>
/*
* DataFlash is a kind of SPI flash. Most AT45 chips have two buffers in