]> www.infradead.org Git - users/hch/block.git/commitdiff
MIPS: jz4740: Move jz4740_nand.h header to include/linux/platform_data/jz4740
authorBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 9 Jul 2018 20:09:42 +0000 (22:09 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jul 2018 08:10:23 +0000 (10:10 +0200)
This way we will be able to compile the jz4740_nand driver when
COMPILE_TEST=y.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Acked-by: Paul Burton <paul.burton@mips.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
arch/mips/jz4740/board-qi_lb60.c
drivers/mtd/nand/raw/jz4740_nand.c
include/linux/platform_data/jz4740/jz4740_nand.h [moved from arch/mips/include/asm/mach-jz4740/jz4740_nand.h with 91% similarity]

index 60f0767507c62c70c98cc469aff43150435b6189..af0c8ace0141667337e39b615220da512ebc8586 100644 (file)
 #include <linux/power/gpio-charger.h>
 #include <linux/pwm.h>
 
+#include <linux/platform_data/jz4740/jz4740_nand.h>
+
 #include <asm/mach-jz4740/gpio.h>
 #include <asm/mach-jz4740/jz4740_fb.h>
 #include <asm/mach-jz4740/jz4740_mmc.h>
-#include <asm/mach-jz4740/jz4740_nand.h>
 
 #include <linux/regulator/fixed.h>
 #include <linux/regulator/machine.h>
index 613b00a9604b4803b83ce5ac8a8899d9a635c412..a0254461812d859119a5527045fe69579ffb847f 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <linux/gpio.h>
 
-#include <asm/mach-jz4740/jz4740_nand.h>
+#include <linux/platform_data/jz4740/jz4740_nand.h>
 
 #define JZ_REG_NAND_CTRL       0x50
 #define JZ_REG_NAND_ECC_CTRL   0x100
similarity index 91%
rename from arch/mips/include/asm/mach-jz4740/jz4740_nand.h
rename to include/linux/platform_data/jz4740/jz4740_nand.h
index f381d465e768cf9e31ce6e44690e04fce4ef267f..bc571f6d5ced6e46a1f5347aedce1d22bebb4c4e 100644 (file)
@@ -13,8 +13,8 @@
  *
  */
 
-#ifndef __ASM_MACH_JZ4740_JZ4740_NAND_H__
-#define __ASM_MACH_JZ4740_JZ4740_NAND_H__
+#ifndef __JZ4740_NAND_H__
+#define __JZ4740_NAND_H__
 
 #include <linux/mtd/rawnand.h>
 #include <linux/mtd/partitions.h>