X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmtd%2Fmaps%2Fdilnetpc.c;h=feb38ba14f26966e2b9a58b4a2d713631c38b037;hb=3ec04f3d2903fdf6d9849a8633af59b8628164a5;hp=69d0e7ceb5ec8ffdaa30c71eb69e5ef0c852ca22;hpb=8d40237c730b8be87c1b80a5d96b9c603fefa829;p=linux-2.6.git diff --git a/drivers/mtd/maps/dilnetpc.c b/drivers/mtd/maps/dilnetpc.c index 69d0e7ceb..feb38ba14 100644 --- a/drivers/mtd/maps/dilnetpc.c +++ b/drivers/mtd/maps/dilnetpc.c @@ -14,7 +14,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: dilnetpc.c,v 1.16 2004/11/04 13:24:14 gleixner Exp $ + * $Id: dilnetpc.c,v 1.13 2004/07/12 21:59:44 dwmw2 Exp $ * * The DIL/Net PC is a tiny embedded PC board made by SSV Embedded Systems * featuring the AMD Elan SC410 processor. There are two variants of this @@ -403,7 +403,7 @@ static int __init init_dnpc(void) printk(KERN_NOTICE "DIL/Net %s flash: 0x%lx at 0x%lx\n", is_dnp ? "DNPC" : "ADNP", dnpc_map.size, dnpc_map.phys); - dnpc_map.virt = ioremap_nocache(dnpc_map.phys, dnpc_map.size); + dnpc_map.virt = (unsigned long)ioremap_nocache(dnpc_map.phys, dnpc_map.size); dnpc_map_flash(dnpc_map.phys, dnpc_map.size); @@ -413,7 +413,7 @@ static int __init init_dnpc(void) } simple_map_init(&dnpc_map); - printk("FLASH virtual address: 0x%p\n", dnpc_map.virt); + printk("FLASH virtual address: 0x%lx\n", dnpc_map.virt); mymtd = do_map_probe("jedec_probe", &dnpc_map); @@ -430,7 +430,7 @@ static int __init init_dnpc(void) mymtd->erasesize = 0x10000; if (!mymtd) { - iounmap(dnpc_map.virt); + iounmap((void *)dnpc_map.virt); return -ENXIO; } @@ -481,9 +481,9 @@ static void __exit cleanup_dnpc(void) map_destroy(mymtd); } if (dnpc_map.virt) { - iounmap(dnpc_map.virt); + iounmap((void *)dnpc_map.virt); dnpc_unmap_flash(); - dnpc_map.virt = NULL; + dnpc_map.virt = 0; } }