X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmtd%2Fmaps%2Fsa1100-flash.c;h=bb9c0778083f6c437dcca2f4b9ada05d5090270d;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=3ffedfa6a32a15e6e2dbdecfbf51a433931d1b16;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c index 3ffedfa6a..bb9c07780 100644 --- a/drivers/mtd/maps/sa1100-flash.c +++ b/drivers/mtd/maps/sa1100-flash.c @@ -3,7 +3,7 @@ * * (C) 2000 Nicolas Pitre * - * $Id: sa1100-flash.c,v 1.36 2003/05/29 08:59:35 dwmw2 Exp $ + * $Id: sa1100-flash.c,v 1.39 2004/07/12 21:59:44 dwmw2 Exp $ */ #include @@ -885,7 +885,7 @@ struct sa_info { unsigned long base; unsigned long size; int width; - void *vbase; + void __iomem *vbase; void (*set_vpp)(struct map_info *, int); struct map_info *map; struct mtd_info *mtd; @@ -932,10 +932,10 @@ static int __init sa1100_setup_mtd(struct sa_info *sa, int nr, struct mtd_info * break; } - sa[i].map->virt = (unsigned long)sa[i].vbase; + sa[i].map->virt = sa[i].vbase; sa[i].map->phys = sa[i].base; sa[i].map->set_vpp = sa[i].set_vpp; - sa[i].map->buswidth = sa[i].width; + sa[i].map->bankwidth = sa[i].width; sa[i].map->size = sa[i].size; simple_map_init(sa[i].map); @@ -1066,7 +1066,7 @@ static void __init sa1100_probe_one_cs(unsigned int msc, unsigned long phys) return; } - sa1100_probe_map.buswidth = msc & MSC_RBW ? 2 : 4; + sa1100_probe_map.bankwidth = msc & MSC_RBW ? 2 : 4; sa1100_probe_map.size = SZ_1M; sa1100_probe_map.phys = phys; sa1100_probe_map.virt = (unsigned long)ioremap(phys, SZ_1M); @@ -1253,7 +1253,7 @@ static int __init sa1100_locate_flash(void) return nr; /* - * Retrieve the buswidth from the MSC registers. + * Retrieve the bankwidth from the MSC registers. * We currently only implement CS0 and CS1 here. */ for (i = 0; i < nr; i++) {