mtd/drivers/mtd/maps integrator-flash.c,1.17,1.18

Russell King rmk at infradead.org
Mon Nov 1 08:26:17 EST 2004


Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv27734

Modified Files:
	integrator-flash.c 
Log Message:
Fix sparse __iomem annotations.  Using them as casts is fundamentally wrong.


Index: integrator-flash.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/integrator-flash.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- integrator-flash.c	16 Sep 2004 23:27:13 -0000	1.17
+++ integrator-flash.c	1 Nov 2004 13:26:15 -0000	1.18
@@ -75,7 +75,7 @@
 	unsigned int size = res->end - res->start + 1;
 	struct armflash_info *info;
 	int err;
-	void *base;
+	void __iomem *base;
 
 	info = kmalloc(sizeof(struct armflash_info), GFP_KERNEL);
 	if (!info) {
@@ -110,7 +110,7 @@
 	info->map.size		= size;
 	info->map.bankwidth	= plat->width;
 	info->map.phys		= res->start;
-	info->map.virt		= (void __iomem *) base;
+	info->map.virt		= base;
 	info->map.name		= dev->dev.bus_id;
 	info->map.set_vpp	= armflash_set_vpp;
 
@@ -179,7 +179,7 @@
 		if (info->parts)
 			kfree(info->parts);
 
-		iounmap((void *)info->map.virt);
+		iounmap(info->map.virt);
 		release_resource(info->res);
 		kfree(info->res);
 





More information about the linux-mtd-cvs mailing list