[U-Boot] [PATCH v1 5/5] mtd: nand: omap: move omap_elm.h from arch/arm/include/asm to drivers/mtd/nand
Pekon Gupta
pekon at ti.com
Fri Nov 22 12:17:46 CET 2013
omap_elm.h is a generic header used by OMAP ELM driver for all TI platfoms.
Hence this file should be present in generic folder instead of architecture
specific include folder.
Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
Signed-off-by: Pekon Gupta <pekon at ti.com>
---
drivers/mtd/nand/omap_elm.c | 2 +-
drivers/mtd/nand/omap_gpmc.c | 2 +-
{arch/arm/include/asm => include/linux/mtd}/omap_elm.h | 0
3 files changed, 2 insertions(+), 2 deletions(-)
rename {arch/arm/include/asm => include/linux/mtd}/omap_elm.h (100%)
diff --git a/drivers/mtd/nand/omap_elm.c b/drivers/mtd/nand/omap_elm.c
index 55a631d..47b1f1b 100644
--- a/drivers/mtd/nand/omap_elm.c
+++ b/drivers/mtd/nand/omap_elm.c
@@ -17,7 +17,7 @@
#include <asm/io.h>
#include <asm/errno.h>
#include <linux/mtd/omap_gpmc.h>
-#include <asm/omap_elm.h>
+#include <linux/mtd/omap_elm.h>
#include <asm/arch/hardware.h>
#define ELM_DEFAULT_POLY (0)
diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c
index 6bf8242..c1ce771 100644
--- a/drivers/mtd/nand/omap_gpmc.c
+++ b/drivers/mtd/nand/omap_gpmc.c
@@ -14,7 +14,7 @@
#include <linux/bch.h>
#include <linux/compiler.h>
#include <nand.h>
-#include <asm/omap_elm.h>
+#include <linux/mtd/omap_elm.h>
#define BADBLOCK_MARKER_LENGTH 2
#define SECTOR_BYTES 512
diff --git a/arch/arm/include/asm/omap_elm.h b/include/linux/mtd/omap_elm.h
similarity index 100%
rename from arch/arm/include/asm/omap_elm.h
rename to include/linux/mtd/omap_elm.h
--
1.8.1
More information about the U-Boot
mailing list