Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30929
b: refs/heads/master
c: 17ffc7b
h: refs/heads/master
i:
  30927: 1118c25
v: v3
  • Loading branch information
Artem B. Bityutskiy committed Jun 22, 2006
1 parent 6dd0225 commit 88a3982
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1794c13002918c2216e2e11913eb299d071a5731
refs/heads/master: 17ffc7ba6d7ea68b8d5f55a5ca1b87163e69720d
1 change: 1 addition & 0 deletions trunk/drivers/mtd/chips/cfi_cmdset_0001.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ struct mtd_info *cfi_cmdset_0001(struct map_info *map, int primary)
mtd->resume = cfi_intelext_resume;
mtd->flags = MTD_CAP_NORFLASH;
mtd->name = map->name;
mtd->writesize = 1;

mtd->reboot_notifier.notifier_call = cfi_intelext_reboot;

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mtd/chips/jedec.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ static struct mtd_info *jedec_probe(struct map_info *map)
MTD->name = map->name;
MTD->type = MTD_NORFLASH;
MTD->flags = MTD_CAP_NORFLASH;
MTD->writesize = 1;
MTD->erasesize = SectorSize*(map->buswidth);
// printk("MTD->erasesize is %x\n",(unsigned int)MTD->erasesize);
MTD->size = priv->size;
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/mtd/chips/map_absent.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ static struct mtd_info *map_absent_probe(struct map_info *map)
mtd->write = map_absent_write;
mtd->sync = map_absent_sync;
mtd->flags = 0;
mtd->erasesize = PAGE_SIZE;
mtd->erasesize = PAGE_SIZE;
mtd->writesize = 1;

__module_get(THIS_MODULE);
return mtd;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mtd/chips/map_ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ static struct mtd_info *map_ram_probe(struct map_info *map)
mtd->write = mapram_write;
mtd->sync = mapram_nop;
mtd->flags = MTD_CAP_RAM;
mtd->writesize = 1;

mtd->erasesize = PAGE_SIZE;
while(mtd->size & (mtd->erasesize - 1))
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mtd/chips/map_rom.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ static struct mtd_info *map_rom_probe(struct map_info *map)
mtd->sync = maprom_nop;
mtd->flags = MTD_CAP_ROM;
mtd->erasesize = map->size;
mtd->writesize = 1;

__module_get(THIS_MODULE);
return mtd;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mtd/devices/block2mtd.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ static struct block2mtd_dev *add_device(char *devname, int erase_size)

dev->mtd.size = dev->blkdev->bd_inode->i_size & PAGE_MASK;
dev->mtd.erasesize = erase_size;
dev->mtd.writesize = 1;
dev->mtd.type = MTD_RAM;
dev->mtd.flags = MTD_CAP_RAM;
dev->mtd.erase = block2mtd_erase;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mtd/devices/ms02-nv.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ static int __init ms02nv_init_one(ulong addr)
mtd->owner = THIS_MODULE;
mtd->read = ms02nv_read;
mtd->write = ms02nv_write;
mtd->writesize = 1;

ret = -EIO;
if (add_mtd_device(mtd)) {
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mtd/devices/mtd_dataflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ add_dataflash(struct spi_device *spi, char *name,
device->name = (pdata && pdata->name) ? pdata->name : priv->name;
device->size = nr_pages * pagesize;
device->erasesize = pagesize;
device->writesize = pagesize;
device->owner = THIS_MODULE;
device->type = MTD_DATAFLASH;
device->flags = MTD_CAP_NORFLASH;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mtd/devices/phram.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ static int register_device(char *name, unsigned long start, unsigned long len)
new->mtd.owner = THIS_MODULE;
new->mtd.type = MTD_RAM;
new->mtd.erasesize = PAGE_SIZE;
new->mtd.writesize = 1;

ret = -EAGAIN;
if (add_mtd_device(&new->mtd)) {
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/mtd/devices/pmc551.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,8 @@ static int __init init_pmc551(void)
mtd->type = MTD_RAM;
mtd->name = "PMC551 RAM board";
mtd->erasesize = 0x10000;
mtd->owner = THIS_MODULE;
mtd->writesize = 1;
mtd->owner = THIS_MODULE;

if (add_mtd_device(mtd)) {
printk(KERN_NOTICE "pmc551: Failed to register new device\n");
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mtd/devices/slram.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ static int register_device(char *name, unsigned long start, unsigned long length
(*curmtd)->mtdinfo->owner = THIS_MODULE;
(*curmtd)->mtdinfo->type = MTD_RAM;
(*curmtd)->mtdinfo->erasesize = SLRAM_BLK_SZ;
(*curmtd)->mtdinfo->writesize = 1;

if (add_mtd_device((*curmtd)->mtdinfo)) {
E("slram: Failed to register new device\n");
Expand Down

0 comments on commit 88a3982

Please sign in to comment.