[PATCH] fix compile warnings in ixp2000 map driver
Lennert Buytenhek
buytenh at wantstofly.org
Thu Jun 23 15:33:01 EDT 2005
(please CC on replies, not on the list)
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>
diff -urN linux-2.6.12-rc1.orig/drivers/mtd/maps/ixp2000.c linux-2.6.12-rc1/drivers/mtd/maps/ixp2000.c
--- linux-2.6.12-rc1.orig/drivers/mtd/maps/ixp2000.c 2005-03-20 18:33:46.000000000 +0100
+++ linux-2.6.12-rc1/drivers/mtd/maps/ixp2000.c 2005-03-25 22:42:54.000000000 +0100
@@ -191,7 +191,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;
@@ -208,7 +208,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
mailing list