diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 16:45:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 16:45:22 -0500 |
commit | 7b3480f8b701170c046e1ed362946f5f0d005e13 (patch) | |
tree | bd25e05b4f35699689b485480dddf24f840f80af /drivers/mtd/ssfdc.c | |
parent | 1c8106528aa6bf16b3f457de80df1cf7462a49a4 (diff) | |
parent | b60ef99c1164a8ad346cf41f9e71acfffb6d25a6 (diff) |
Merge tag 'for-linus-3.3' of git://git.infradead.org/mtd-2.6
MTD pull for 3.3
* tag 'for-linus-3.3' of git://git.infradead.org/mtd-2.6: (113 commits)
mtd: Fix dependency for MTD_DOC200x
mtd: do not use mtd->block_markbad directly
logfs: do not use 'mtd->block_isbad' directly
mtd: introduce mtd_can_have_bb helper
mtd: do not use mtd->suspend and mtd->resume directly
mtd: do not use mtd->lock, unlock and is_locked directly
mtd: do not use mtd->sync directly
mtd: harmonize mtd_writev usage
mtd: do not use mtd->lock_user_prot_reg directly
mtd: mtd->write_user_prot_reg directly
mtd: do not use mtd->read_*_prot_reg directly
mtd: do not use mtd->get_*_prot_info directly
mtd: do not use mtd->read_oob directly
mtd: mtdoops: do not use mtd->panic_write directly
romfs: do not use mtd->get_unmapped_area directly
mtd: do not use mtd->get_unmapped_area directly
mtd: do use mtd->point directly
mtd: introduce mtd_has_oob helper
mtd: mtdcore: export symbols cleanup
mtd: clean-up the default_mtd_writev function
...
Fix up trivial edit/remove conflict in drivers/staging/spectra/lld_mtd.c
Diffstat (limited to 'drivers/mtd/ssfdc.c')
-rw-r--r-- | drivers/mtd/ssfdc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mtd/ssfdc.c b/drivers/mtd/ssfdc.c index 976e3d28b962..ab2a52a039c3 100644 --- a/drivers/mtd/ssfdc.c +++ b/drivers/mtd/ssfdc.c | |||
@@ -122,9 +122,9 @@ static int get_valid_cis_sector(struct mtd_info *mtd) | |||
122 | * is not SSFDC formatted | 122 | * is not SSFDC formatted |
123 | */ | 123 | */ |
124 | for (k = 0, offset = 0; k < 4; k++, offset += mtd->erasesize) { | 124 | for (k = 0, offset = 0; k < 4; k++, offset += mtd->erasesize) { |
125 | if (!mtd->block_isbad(mtd, offset)) { | 125 | if (mtd_block_isbad(mtd, offset)) { |
126 | ret = mtd->read(mtd, offset, SECTOR_SIZE, &retlen, | 126 | ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, |
127 | sect_buf); | 127 | sect_buf); |
128 | 128 | ||
129 | /* CIS pattern match on the sector buffer */ | 129 | /* CIS pattern match on the sector buffer */ |
130 | if (ret < 0 || retlen != SECTOR_SIZE) { | 130 | if (ret < 0 || retlen != SECTOR_SIZE) { |
@@ -156,7 +156,7 @@ static int read_physical_sector(struct mtd_info *mtd, uint8_t *sect_buf, | |||
156 | size_t retlen; | 156 | size_t retlen; |
157 | loff_t offset = (loff_t)sect_no << SECTOR_SHIFT; | 157 | loff_t offset = (loff_t)sect_no << SECTOR_SHIFT; |
158 | 158 | ||
159 | ret = mtd->read(mtd, offset, SECTOR_SIZE, &retlen, sect_buf); | 159 | ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, sect_buf); |
160 | if (ret < 0 || retlen != SECTOR_SIZE) | 160 | if (ret < 0 || retlen != SECTOR_SIZE) |
161 | return -1; | 161 | return -1; |
162 | 162 | ||
@@ -175,7 +175,7 @@ static int read_raw_oob(struct mtd_info *mtd, loff_t offs, uint8_t *buf) | |||
175 | ops.oobbuf = buf; | 175 | ops.oobbuf = buf; |
176 | ops.datbuf = NULL; | 176 | ops.datbuf = NULL; |
177 | 177 | ||
178 | ret = mtd->read_oob(mtd, offs, &ops); | 178 | ret = mtd_read_oob(mtd, offs, &ops); |
179 | if (ret < 0 || ops.oobretlen != OOB_SIZE) | 179 | if (ret < 0 || ops.oobretlen != OOB_SIZE) |
180 | return -1; | 180 | return -1; |
181 | 181 | ||
@@ -255,7 +255,7 @@ static int build_logical_block_map(struct ssfdcr_record *ssfdc) | |||
255 | for (phys_block = ssfdc->cis_block + 1; phys_block < ssfdc->map_len; | 255 | for (phys_block = ssfdc->cis_block + 1; phys_block < ssfdc->map_len; |
256 | phys_block++) { | 256 | phys_block++) { |
257 | offset = (unsigned long)phys_block * ssfdc->erase_size; | 257 | offset = (unsigned long)phys_block * ssfdc->erase_size; |
258 | if (mtd->block_isbad(mtd, offset)) | 258 | if (mtd_block_isbad(mtd, offset)) |
259 | continue; /* skip bad blocks */ | 259 | continue; /* skip bad blocks */ |
260 | 260 | ||
261 | ret = read_raw_oob(mtd, offset, oob_buf); | 261 | ret = read_raw_oob(mtd, offset, oob_buf); |