/*
- * $Id: l440gx.c,v 1.13 2004/07/12 21:59:44 dwmw2 Exp $
+ * $Id: l440gx.c,v 1.17 2004/11/28 09:40:39 dwmw2 Exp $
*
* BIOS Flash chip on Intel 440GX board.
*
/* Is this really the vpp port? */
-void l440gx_set_vpp(struct map_info *map, int vpp)
+static void l440gx_set_vpp(struct map_info *map, int vpp)
{
unsigned long l;
outl(l, VPP_PORT);
}
-struct map_info l440gx_map = {
+static struct map_info l440gx_map = {
.name = "L440GX BIOS",
.size = WINDOW_SIZE,
.bankwidth = BUSWIDTH,
return -ENODEV;
}
- l440gx_map.virt = (unsigned long)ioremap_nocache(WINDOW_ADDR, WINDOW_SIZE);
+ l440gx_map.virt = ioremap_nocache(WINDOW_ADDR, WINDOW_SIZE);
if (!l440gx_map.virt) {
printk(KERN_WARNING "Failed to ioremap L440GX flash region\n");
/* Allocate the resource region */
if (pci_assign_resource(pm_dev, PIIXE_IOBASE_RESOURCE) != 0) {
printk(KERN_WARNING "Could not allocate pm iobase resource\n");
- iounmap((void *)l440gx_map.virt);
+ iounmap(l440gx_map.virt);
return -ENXIO;
}
}
return 0;
}
- iounmap((void *)l440gx_map.virt);
+ iounmap(l440gx_map.virt);
return -ENXIO;
}
del_mtd_device(mymtd);
map_destroy(mymtd);
- iounmap((void *)l440gx_map.virt);
+ iounmap(l440gx_map.virt);
}
module_init(init_l440gx);