vserver 1.9.5.x5
[linux-2.6.git] / drivers / mtd / maps / autcpu12-nvram.c
index 31e9df6..cf362cc 100644 (file)
@@ -2,7 +2,7 @@
  * NV-RAM memory access on autcpu12 
  * (C) 2002 Thomas Gleixner (gleixner@autronix.de)
  *
- * $Id: autcpu12-nvram.c,v 1.6 2004/07/12 21:59:43 dwmw2 Exp $ 
+ * $Id: autcpu12-nvram.c,v 1.8 2004/11/04 13:24:14 gleixner Exp $ 
  *
  * 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
@@ -47,7 +47,7 @@ static int __init init_autcpu12_sram (void)
 {
        int err, save0, save1;
 
-       autcpu12_sram_map.virt = (unsigned long)ioremap(0x12000000, SZ_128K);
+       autcpu12_sram_map.virt = ioremap(0x12000000, SZ_128K);
        if (!autcpu12_sram_map.virt) {
                printk("Failed to ioremap autcpu12 NV-RAM space\n");
                err = -EIO;
@@ -76,7 +76,7 @@ static int __init init_autcpu12_sram (void)
        /* We have a 128K found, restore 0x10000 and set size
         * to 128K
         */
-       ma[_write32(&autcpu12_sram_map,save1,0x10000);
+       map_write32(&autcpu12_sram_map,save1,0x10000);
        autcpu12_sram_map.size = SZ_128K;
 
 map: