This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / mtd / maps / ebony.c
index b654c31..7add7b8 100644 (file)
@@ -1,11 +1,11 @@
 /*
- * $Id: ebony.c,v 1.13 2004/11/04 13:24:14 gleixner Exp $
+ * $Id: ebony.c,v 1.10 2004/07/12 21:59:44 dwmw2 Exp $
  * 
  * Mapping for Ebony user flash
  *
- * Matt Porter <mporter@kernel.crashing.org>
+ * Matt Porter <mporter@mvista.com>
  *
- * Copyright 2002-2004 MontaVista Software Inc.
+ * Copyright 2002 MontaVista Software Inc.
  *
  * 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
 #include <linux/mtd/map.h>
 #include <linux/mtd/partitions.h>
 #include <linux/config.h>
-#include <linux/version.h>
 #include <asm/io.h>
 #include <asm/ibm44x.h>
-#include <platforms/4xx/ebony.h>
+#include <platforms/ebony.h>
 
 static struct mtd_info *flash;
 
@@ -64,7 +63,7 @@ static struct mtd_partition ebony_large_partitions[] = {
 int __init init_ebony(void)
 {
        u8 fpga0_reg;
-       u8 __iomem *fpga0_adr;
+       unsigned long fpga0_adr;
        unsigned long long small_flash_base, large_flash_base;
 
        fpga0_adr = ioremap64(EBONY_FPGA_ADDR, 16);
@@ -93,7 +92,8 @@ int __init init_ebony(void)
                large_flash_base = EBONY_LARGE_FLASH_HIGH;
 
        ebony_small_map.phys = small_flash_base;
-       ebony_small_map.virt = ioremap64(small_flash_base,
+       ebony_small_map.virt =
+               (unsigned long)ioremap64(small_flash_base,
                                         ebony_small_map.size);
 
        if (!ebony_small_map.virt) {
@@ -114,7 +114,8 @@ int __init init_ebony(void)
        }
 
        ebony_large_map.phys = large_flash_base;
-       ebony_large_map.virt = ioremap64(large_flash_base,
+       ebony_large_map.virt =
+               (unsigned long)ioremap64(large_flash_base,
                                         ebony_large_map.size);
 
        if (!ebony_large_map.virt) {
@@ -145,13 +146,13 @@ static void __exit cleanup_ebony(void)
        }
 
        if (ebony_small_map.virt) {
-               iounmap(ebony_small_map.virt);
-               ebony_small_map.virt = NULL;
+               iounmap((void *)ebony_small_map.virt);
+               ebony_small_map.virt = 0;
        }
 
        if (ebony_large_map.virt) {
-               iounmap(ebony_large_map.virt);
-               ebony_large_map.virt = NULL;
+               iounmap((void *)ebony_large_map.virt);
+               ebony_large_map.virt = 0;
        }
 }
 
@@ -159,5 +160,5 @@ module_init(init_ebony);
 module_exit(cleanup_ebony);
 
 MODULE_LICENSE("GPL");
-MODULE_AUTHOR("Matt Porter <mporter@kernel.crashing.org>");
+MODULE_AUTHOR("Matt Porter <mporter@mvista.com>");
 MODULE_DESCRIPTION("MTD map and partitions for IBM 440GP Ebony boards");