2.6.14 drivers/mtd/maps/ixp4xx.c: remove compiler warning from ioremap assignment
PATCH 1/1 2.6.14 drivers/mtd/maps/ixp4xx.c: remove compiler warning from ioremap assignment
Trivial fix for a compiler warning: info->map.map_priv_1 is (unsigned long), ioremap returns a pointer. (Probably the result of improved compiler warnings in >2.6.12).
Signed-off-by John Bowler <[email protected]>
drivers/mtd/maps/ixp4xx.c +1 -1
@@ -227,7 +227,7 @@ static int ixp4xx_flash_probe(struct dev 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) {printk (KERN_ERR "IXP4XXFlash: Failed to ioremap region\n" );
Quoted 3 lines · John Bowler
Trivial fix for a compiler warning:
info->map.map_priv_1is (unsigned long), ioremap returns a pointer. (Probably the result of improved compiler warnings in >2.6.12).
This is wrong. You should be using map.virt (which has the correct type) and not map.map_priv_1.
Signature · 3 lines
Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core