Skip to contentSkip to conversation

MAPS: ocotea.c compile fix and add Id keyword

PATCH New Matt Porter 1 participant 1 message Aug 16, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MAPS: ocotea.c compile fix and add Id keyword

[MTD] MAPS: ocotea.c compile fix and add Id keyword

Index: drivers/mtd/maps/ocotea.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/ocotea.c,v retrieving revision 1.3

mtd/maps/ocotea.c +7 -6
diff -u -r1.3 ocotea.c
@@ -1,9 +1,10 @@
 /*
- * Mapping for Ocotea user flash
+ * $Id: $
  *
- * Matt Porter <[email protected]>
+ * Mapping for Ocotea user flash
  *
  * Copyright 2002-2004 MontaVista Software Inc.
+ * Copyright 2005 Matt Porter <[email protected]>
  *
  * This program is free software; you can redistribute  it and/or modify it
  * under  the terms of  the GNU General  Public License as published by the
@@ -29,13 +30,13 @@
 static struct map_info ocotea_small_map = {
 	.name =		"Ocotea small flash",
 	.size =		OCOTEA_SMALL_FLASH_SIZE,
-	.buswidth =	1,
+	.bankwidth =	1,
 };
 
 static struct map_info ocotea_large_map = {
 	.name =		"Ocotea large flash",
 	.size =		OCOTEA_LARGE_FLASH_SIZE,
-	.buswidth =	1,
+	.bankwidth =	1,
 };
 
 static struct mtd_partition ocotea_small_partitions[] = {
@@ -67,11 +68,11 @@
 	u8 *fpga0_adr;
 	unsigned long long small_flash_base, large_flash_base;
 
-	fpga0_adr = ioremap64(OCOTEA_FPGA_ADDR, 16);
+	fpga0_adr = ioremap64(OCOTEA_FPGA_REG_0, 16);
 	if (!fpga0_adr)
 		return -ENOMEM;
 
-	fpga0_reg = readb((unsigned long)fpga0_adr);
+	fpga0_reg = readb(fpga0_adr);
 	iounmap(fpga0_adr);
 
 	if (OCOTEA_BOOT_LARGE_FLASH(fpga0_reg)) {