Explorar o código

[ARM] cdb89712,clps7500,h720x: avoid namespace clash for FLASH_* constants

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Russell King %!s(int64=16) %!d(string=hai) anos
pai
achega
d9a682a592

+ 0 - 4
arch/arm/mach-clps711x/include/mach/hardware.h

@@ -95,10 +95,6 @@
 #include <asm/hardware/cs89712.h>
 #include <asm/hardware/cs89712.h>
 
 
 /* dynamic ioremap() areas */
 /* dynamic ioremap() areas */
-#define FLASH_START      0x00000000
-#define FLASH_SIZE       0x800000
-#define FLASH_WIDTH      4
-
 #define SRAM_START       0x60000000
 #define SRAM_START       0x60000000
 #define SRAM_SIZE        0xc000
 #define SRAM_SIZE        0xc000
 #define SRAM_WIDTH       4
 #define SRAM_WIDTH       4

+ 3 - 3
arch/arm/mach-clps7500/core.c

@@ -275,9 +275,9 @@ static struct map_desc cl7500_io_desc[] __initdata = {
 		.length		= ISA_SIZE,
 		.length		= ISA_SIZE,
 		.type		= MT_DEVICE
 		.type		= MT_DEVICE
 	}, {	/* Flash	*/
 	}, {	/* Flash	*/
-		.virtual	= FLASH_BASE,
-		.pfn		= __phys_to_pfn(FLASH_START),
-		.length		= FLASH_SIZE,
+		.virtual	= CLPS7500_FLASH_BASE,
+		.pfn		= __phys_to_pfn(CLPS7500_FLASH_START),
+		.length		= CLPS7500_FLASH_SIZE,
 		.type		= MT_DEVICE
 		.type		= MT_DEVICE
 	}, {	/* LED		*/
 	}, {	/* LED		*/
 		.virtual	= LED_BASE,
 		.virtual	= LED_BASE,

+ 3 - 3
arch/arm/mach-clps7500/include/mach/hardware.h

@@ -39,9 +39,9 @@
 #define ISA_SIZE		0x00010000
 #define ISA_SIZE		0x00010000
 #define ISA_BASE		0xe1000000
 #define ISA_BASE		0xe1000000
 
 
-#define FLASH_START		0x01000000	/* XXX */
-#define FLASH_SIZE		0x01000000
-#define FLASH_BASE		0xe2000000
+#define CLPS7500_FLASH_START	0x01000000	/* XXX */
+#define CLPS7500_FLASH_SIZE	0x01000000
+#define CLPS7500_FLASH_BASE	0xe2000000
 
 
 #define LED_START		0x0302B000
 #define LED_START		0x0302B000
 #define LED_SIZE		0x00001000
 #define LED_SIZE		0x00001000

+ 3 - 3
arch/arm/mach-h720x/include/mach/boards.h

@@ -19,9 +19,9 @@
 #ifdef CONFIG_ARCH_H7202
 #ifdef CONFIG_ARCH_H7202
 
 
 /* FLASH */
 /* FLASH */
-#define FLASH_VIRT		0xd0000000
-#define FLASH_PHYS		0x00000000
-#define FLASH_SIZE		0x02000000
+#define H720X_FLASH_VIRT	0xd0000000
+#define H720X_FLASH_PHYS	0x00000000
+#define H720X_FLASH_SIZE	0x02000000
 
 
 /* onboard LAN controller */
 /* onboard LAN controller */
 # define ETH0_PHYS		0x08000000
 # define ETH0_PHYS		0x08000000

+ 3 - 1
drivers/mtd/maps/cdb89712.c

@@ -15,7 +15,9 @@
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/partitions.h>
 
 
 
 
-
+#define FLASH_START      0x00000000
+#define FLASH_SIZE       0x800000
+#define FLASH_WIDTH      4
 
 
 static struct mtd_info *flash_mtd;
 static struct mtd_info *flash_mtd;
 
 

+ 3 - 3
drivers/mtd/maps/h720x-flash.c

@@ -24,8 +24,8 @@ static struct mtd_info *mymtd;
 static struct map_info h720x_map = {
 static struct map_info h720x_map = {
 	.name =		"H720X",
 	.name =		"H720X",
 	.bankwidth =	4,
 	.bankwidth =	4,
-	.size =		FLASH_SIZE,
-	.phys =		FLASH_PHYS,
+	.size =		H720X_FLASH_SIZE,
+	.phys =		H720X_FLASH_PHYS,
 };
 };
 
 
 static struct mtd_partition h720x_partitions[] = {
 static struct mtd_partition h720x_partitions[] = {
@@ -70,7 +70,7 @@ int __init h720x_mtd_init(void)
 
 
 	char	*part_type = NULL;
 	char	*part_type = NULL;
 
 
-	h720x_map.virt = ioremap(FLASH_PHYS, FLASH_SIZE);
+	h720x_map.virt = ioremap(h720x_map.phys, h720x_map.size);
 
 
 	if (!h720x_map.virt) {
 	if (!h720x_map.virt) {
 		printk(KERN_ERR "H720x-MTD: ioremap failed\n");
 		printk(KERN_ERR "H720x-MTD: ioremap failed\n");