aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid Vrabel <dvrabel@arcom.com>2005-09-08 06:32:23 -0400
committerThomas Gleixner <tglx@mtd.linutronix.de>2005-11-06 15:32:16 -0500
commite4c212efbdd4e286bc3defcddbab2c1e57ec75c3 (patch)
tree6e33da00f5c2d2e3f533e9eb58bf9f6d691db634 /drivers
parentc617e842482eb513070cbf233766099cff2a1663 (diff)
[MTD] maps/ixp4xx: remove platform specific bits
- Intel chip driver has a reboot notifier so no need to reset the chip here. - Don't play with chip selects (platform code should do this if necessary). Signed-off-by: David Vrabel <dvrabel@arcom.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/maps/ixp4xx.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/mtd/maps/ixp4xx.c b/drivers/mtd/maps/ixp4xx.c
index 733a9297a562..58b477043f2e 100644
--- a/drivers/mtd/maps/ixp4xx.c
+++ b/drivers/mtd/maps/ixp4xx.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * $Id: ixp4xx.c,v 1.7 2004/11/04 13:24:15 gleixner Exp $ 2 * $Id: ixp4xx.c,v 1.8 2005/09/08 10:32:20 dvrabel Exp $
3 * 3 *
4 * drivers/mtd/maps/ixp4xx.c 4 * drivers/mtd/maps/ixp4xx.c
5 * 5 *
@@ -111,12 +111,6 @@ static int ixp4xx_flash_remove(struct device *_dev)
111 if(!info) 111 if(!info)
112 return 0; 112 return 0;
113 113
114 /*
115 * This is required for a soft reboot to work.
116 */
117 d.x[0] = 0xff;
118 ixp4xx_write16(&info->map, d, 0x55 * 0x2);
119
120 if (info->mtd) { 114 if (info->mtd) {
121 del_mtd_partitions(info->mtd); 115 del_mtd_partitions(info->mtd);
122 map_destroy(info->mtd); 116 map_destroy(info->mtd);
@@ -135,9 +129,6 @@ static int ixp4xx_flash_remove(struct device *_dev)
135 if (plat->exit) 129 if (plat->exit)
136 plat->exit(); 130 plat->exit();
137 131
138 /* Disable flash write */
139 *IXP4XX_EXP_CS0 &= ~IXP4XX_FLASH_WRITABLE;
140
141 return 0; 132 return 0;
142} 133}
143 134
@@ -166,12 +157,6 @@ static int ixp4xx_flash_probe(struct device *_dev)
166 157
167 dev_set_drvdata(&dev->dev, info); 158 dev_set_drvdata(&dev->dev, info);
168 159
169 /*
170 * Enable flash write
171 * TODO: Move this out to board specific code
172 */
173 *IXP4XX_EXP_CS0 |= IXP4XX_FLASH_WRITABLE;
174
175 /* 160 /*
176 * Tell the MTD layer we're not 1:1 mapped so that it does 161 * Tell the MTD layer we're not 1:1 mapped so that it does
177 * not attempt to do a direct access on us. 162 * not attempt to do a direct access on us.