mtd/drivers/mtd/maps ixp4xx.c,1.3,1.4

dsaxena at plexity.net dsaxena at plexity.net
Tue Aug 31 18:55:54 EDT 2004


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

Modified Files:
	ixp4xx.c 
Log Message:

Fix IXP4xx map driver to use map_word when reconfiguring flash at reboot.
(This should really move into arch/arm/kernel someday).



Index: ixp4xx.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/ixp4xx.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ixp4xx.c	12 Jul 2004 22:38:29 -0000	1.3
+++ ixp4xx.c	31 Aug 2004 22:55:51 -0000	1.4
@@ -88,6 +88,7 @@
 	struct platform_device *dev = to_platform_device(_dev);
 	struct flash_platform_data *plat = dev->dev.platform_data;
 	struct ixp4xx_flash_info *info = dev_get_drvdata(&dev->dev);
+	map_word d;
 
 	dev_set_drvdata(&dev->dev, NULL);
 
@@ -97,7 +98,8 @@
 	/*
 	 * This is required for a soft reboot to work.
 	 */
-	ixp4xx_write16(&info->map, 0xff, 0x55 * 0x2);
+	d.x[0] = 0xff;
+	ixp4xx_write16(&info->map, d, 0x55 * 0x2);
 
 	if (info->mtd) {
 		del_mtd_partitions(info->mtd);





More information about the linux-mtd-cvs mailing list