diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-06-14 16:39:48 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-06-14 16:39:48 -0400 |
commit | 21c8db9eff95260e543535dfc6f27164c4c0c0ff (patch) | |
tree | 68dd7562b241b5cc95e5e45c8fa555fbbe26875f /drivers/mtd/devices | |
parent | 783ed81ff39d3f938a6b2efd09fbad96e41e5c1f (diff) |
[MTD] Restore MTD_ROM and MTD_RAM types
Let's not attempt the abolition of mtd->type until/unless it's properly
thought through. And certainly, let's not do it by halves.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r-- | drivers/mtd/devices/block2mtd.c | 2 | ||||
-rw-r--r-- | drivers/mtd/devices/ms02-nv.c | 2 | ||||
-rw-r--r-- | drivers/mtd/devices/mtdram.c | 2 | ||||
-rw-r--r-- | drivers/mtd/devices/phram.c | 2 | ||||
-rw-r--r-- | drivers/mtd/devices/pmc551.c | 2 | ||||
-rw-r--r-- | drivers/mtd/devices/slram.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mtd/devices/block2mtd.c b/drivers/mtd/devices/block2mtd.c index 1157182c2c8c..0d98c223c5fc 100644 --- a/drivers/mtd/devices/block2mtd.c +++ b/drivers/mtd/devices/block2mtd.c | |||
@@ -324,7 +324,7 @@ static struct block2mtd_dev *add_device(char *devname, int erase_size) | |||
324 | 324 | ||
325 | dev->mtd.size = dev->blkdev->bd_inode->i_size & PAGE_MASK; | 325 | dev->mtd.size = dev->blkdev->bd_inode->i_size & PAGE_MASK; |
326 | dev->mtd.erasesize = erase_size; | 326 | dev->mtd.erasesize = erase_size; |
327 | dev->mtd.type = MTD_GENERIC_TYPE; | 327 | dev->mtd.type = MTD_RAM; |
328 | dev->mtd.flags = MTD_CAP_RAM; | 328 | dev->mtd.flags = MTD_CAP_RAM; |
329 | dev->mtd.erase = block2mtd_erase; | 329 | dev->mtd.erase = block2mtd_erase; |
330 | dev->mtd.write = block2mtd_write; | 330 | dev->mtd.write = block2mtd_write; |
diff --git a/drivers/mtd/devices/ms02-nv.c b/drivers/mtd/devices/ms02-nv.c index a6466f923e7e..4ab7670770e4 100644 --- a/drivers/mtd/devices/ms02-nv.c +++ b/drivers/mtd/devices/ms02-nv.c | |||
@@ -218,7 +218,7 @@ static int __init ms02nv_init_one(ulong addr) | |||
218 | fixsize = (size - (fixaddr - addr)) & ~(PAGE_SIZE - 1); | 218 | fixsize = (size - (fixaddr - addr)) & ~(PAGE_SIZE - 1); |
219 | mp->uaddr = phys_to_virt(fixaddr); | 219 | mp->uaddr = phys_to_virt(fixaddr); |
220 | 220 | ||
221 | mtd->type = MTD_GENERIC_TYPE; | 221 | mtd->type = MTD_RAM; |
222 | mtd->flags = MTD_CAP_RAM; | 222 | mtd->flags = MTD_CAP_RAM; |
223 | mtd->size = fixsize; | 223 | mtd->size = fixsize; |
224 | mtd->name = (char *)ms02nv_name; | 224 | mtd->name = (char *)ms02nv_name; |
diff --git a/drivers/mtd/devices/mtdram.c b/drivers/mtd/devices/mtdram.c index 8ab4b931215f..b4438eacfd80 100644 --- a/drivers/mtd/devices/mtdram.c +++ b/drivers/mtd/devices/mtdram.c | |||
@@ -103,7 +103,7 @@ int mtdram_init_device(struct mtd_info *mtd, void *mapped_address, | |||
103 | 103 | ||
104 | /* Setup the MTD structure */ | 104 | /* Setup the MTD structure */ |
105 | mtd->name = name; | 105 | mtd->name = name; |
106 | mtd->type = MTD_GENERIC_TYPE; | 106 | mtd->type = MTD_RAM; |
107 | mtd->flags = MTD_CAP_RAM; | 107 | mtd->flags = MTD_CAP_RAM; |
108 | mtd->size = size; | 108 | mtd->size = size; |
109 | mtd->writesize = 1; | 109 | mtd->writesize = 1; |
diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c index e6daa74d5fc6..e09e416667d3 100644 --- a/drivers/mtd/devices/phram.c +++ b/drivers/mtd/devices/phram.c | |||
@@ -149,7 +149,7 @@ static int register_device(char *name, unsigned long start, unsigned long len) | |||
149 | new->mtd.read = phram_read; | 149 | new->mtd.read = phram_read; |
150 | new->mtd.write = phram_write; | 150 | new->mtd.write = phram_write; |
151 | new->mtd.owner = THIS_MODULE; | 151 | new->mtd.owner = THIS_MODULE; |
152 | new->mtd.type = MTD_GENERIC_TYPE; | 152 | new->mtd.type = MTD_RAM; |
153 | new->mtd.erasesize = PAGE_SIZE; | 153 | new->mtd.erasesize = PAGE_SIZE; |
154 | 154 | ||
155 | ret = -EAGAIN; | 155 | ret = -EAGAIN; |
diff --git a/drivers/mtd/devices/pmc551.c b/drivers/mtd/devices/pmc551.c index aa9f6c993125..666cce1bf60c 100644 --- a/drivers/mtd/devices/pmc551.c +++ b/drivers/mtd/devices/pmc551.c | |||
@@ -775,7 +775,7 @@ static int __init init_pmc551(void) | |||
775 | mtd->write = pmc551_write; | 775 | mtd->write = pmc551_write; |
776 | mtd->point = pmc551_point; | 776 | mtd->point = pmc551_point; |
777 | mtd->unpoint = pmc551_unpoint; | 777 | mtd->unpoint = pmc551_unpoint; |
778 | mtd->type = MTD_GENERIC_TYPE; | 778 | mtd->type = MTD_RAM; |
779 | mtd->name = "PMC551 RAM board"; | 779 | mtd->name = "PMC551 RAM board"; |
780 | mtd->erasesize = 0x10000; | 780 | mtd->erasesize = 0x10000; |
781 | mtd->owner = THIS_MODULE; | 781 | mtd->owner = THIS_MODULE; |
diff --git a/drivers/mtd/devices/slram.c b/drivers/mtd/devices/slram.c index fdb7a78b5304..b3f665e3c38b 100644 --- a/drivers/mtd/devices/slram.c +++ b/drivers/mtd/devices/slram.c | |||
@@ -207,7 +207,7 @@ static int register_device(char *name, unsigned long start, unsigned long length | |||
207 | (*curmtd)->mtdinfo->read = slram_read; | 207 | (*curmtd)->mtdinfo->read = slram_read; |
208 | (*curmtd)->mtdinfo->write = slram_write; | 208 | (*curmtd)->mtdinfo->write = slram_write; |
209 | (*curmtd)->mtdinfo->owner = THIS_MODULE; | 209 | (*curmtd)->mtdinfo->owner = THIS_MODULE; |
210 | (*curmtd)->mtdinfo->type = MTD_GENERIC_TYPE; | 210 | (*curmtd)->mtdinfo->type = MTD_RAM; |
211 | (*curmtd)->mtdinfo->erasesize = SLRAM_BLK_SZ; | 211 | (*curmtd)->mtdinfo->erasesize = SLRAM_BLK_SZ; |
212 | 212 | ||
213 | if (add_mtd_device((*curmtd)->mtdinfo)) { | 213 | if (add_mtd_device((*curmtd)->mtdinfo)) { |