* 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
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);
}
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);
mymtd->erasesize = 0x10000;
if (!mymtd) {
- iounmap(dnpc_map.virt);
+ iounmap((void *)dnpc_map.virt);
return -ENXIO;
}
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;
}
}