Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / drivers / mtd / maps / wr_sbc82xx_flash.c
index b7fdece..60c197e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: wr_sbc82xx_flash.c,v 1.5 2004/07/15 14:52:02 dwmw2 Exp $
+ * $Id: wr_sbc82xx_flash.c,v 1.8 2005/11/07 11:14:29 gleixner Exp $
  *
  * Map for flash chips on Wind River PowerQUICC II SBC82xx board.
  *
@@ -116,7 +116,7 @@ int __init init_sbc82xx_flash(void)
                }
                printk(" at %08lx)\n",  sbc82xx_flash_map[i].phys);
 
-               sbc82xx_flash_map[i].virt = (unsigned long)ioremap(sbc82xx_flash_map[i].phys, sbc82xx_flash_map[i].size);
+               sbc82xx_flash_map[i].virt = ioremap(sbc82xx_flash_map[i].phys, sbc82xx_flash_map[i].size);
 
                if (!sbc82xx_flash_map[i].virt) {
                        printk("Failed to ioremap\n");
@@ -163,10 +163,10 @@ static void __exit cleanup_sbc82xx_flash(void)
                        del_mtd_partitions(sbcmtd[i]);
                else
                        del_mtd_device(sbcmtd[i]);
-                       
+
                kfree(sbcmtd_parts[i]);
                map_destroy(sbcmtd[i]);
-               
+
                iounmap((void *)sbc82xx_flash_map[i].virt);
                sbc82xx_flash_map[i].virt = 0;
        }