vserver 1.9.5.x5
[linux-2.6.git] / drivers / mtd / maps / epxa10db-flash.c
index 5b83d5f..ab6dbe2 100644 (file)
@@ -5,7 +5,7 @@
  *  Copyright (C) 2001 Altera Corporation
  *  Copyright (C) 2001 Red Hat, Inc.
  *
- * $Id: epxa10db-flash.c,v 1.10 2003/05/21 12:45:18 dwmw2 Exp $ 
+ * $Id: epxa10db-flash.c,v 1.13 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
@@ -50,7 +50,7 @@ static int epxa_default_partitions(struct mtd_info *master, struct mtd_partition
 static struct map_info epxa_map = {
        .name =         "EPXA flash",
        .size =         FLASH_SIZE,
-       .buswidth =     2,
+       .bankwidth =    2,
        .phys =         FLASH_START,
 };
 
@@ -62,7 +62,7 @@ static int __init epxa_mtd_init(void)
        
        printk(KERN_NOTICE "%s flash device: 0x%x at 0x%x\n", BOARD_NAME, FLASH_SIZE, FLASH_START);
 
-       epxa_map.virt = (unsigned long)ioremap(FLASH_START, FLASH_SIZE);
+       epxa_map.virt = ioremap(FLASH_START, FLASH_SIZE);
        if (!epxa_map.virt) {
                printk("Failed to ioremap %s flash\n",BOARD_NAME);
                return -EIO;