mtd/drivers/mtd/maps ixp2000.c,1.7,1.8

gleixner at infradead.org gleixner at infradead.org
Mon Nov 7 03:09:05 EST 2005


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

Modified Files:
	ixp2000.c 
Log Message:
[PATCH] fix compile warnings in ixp2000 map driver

Fix two compile warnings that occur because of treating two
'unsigned long's as 'void *'s.

Signed-off-by: Lennert Buytenhek <buytenh at wantstofly.org>



Index: ixp2000.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/ixp2000.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ixp2000.c	6 Nov 2005 11:15:51 -0000	1.7
+++ ixp2000.c	7 Nov 2005 08:09:02 -0000	1.8
@@ -193,7 +193,7 @@
 	/*
  	 * map_priv_2 is used to store a ptr to to the bank_setup routine
  	 */
-	info->map.map_priv_2 = (void __iomem *) ixp_data->bank_setup;
+	info->map.map_priv_2 = (unsigned long) ixp_data->bank_setup;
 
 	info->map.name = dev->dev.bus_id;
 	info->map.read = ixp2000_flash_read8;
@@ -210,7 +210,7 @@
 		goto Error;
 	}
 
-	info->map.map_priv_1 = ioremap(dev->resource->start, 
+	info->map.map_priv_1 = (unsigned long) ioremap(dev->resource->start, 
 			    	dev->resource->end - dev->resource->start + 1);
 	if (!info->map.map_priv_1) {
 		dev_err(_dev, "Failed to ioremap flash region\n");





More information about the linux-mtd-cvs mailing list