diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-01 14:29:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-01 14:29:54 -0400 |
commit | 623fa579e61f250c1913c70257ef3a753820bb68 (patch) | |
tree | 179fcff4a0469bfa9a9ce5cab14fff6141810cd0 /drivers/mtd/nand/diskonchip.c | |
parent | d65f5c5803d9cd6fa0b540a0dddf956be671bc36 (diff) | |
parent | e4c094a595ba8ea402e6b2153f7bbf6ef039eea0 (diff) |
Merge git://git.infradead.org/mtd-2.6
* git://git.infradead.org/mtd-2.6:
[MTD] [NAND] drivers/mtd/nand/nandsim.c: fix printk warnings
[MTD] [NAND] Blackfin NFC Driver: Cleanup the error exit path of bf5xx_nand_probe function
[MTD] [NAND] Blackfin NFC Driver: use standard dev_err() rather than printk()
[MTD] [NAND] Blackfin NFC Driver: enable Blackfin nand HWECC support by default
[MTD] [NAND] Blackfin NFC Driver: add proper devinit/devexit markings to probe/remove functions
[MTD] [NAND] Blackfin NFC Driver: add support for the ECC layout the Blackfin bootrom uses
[MTD] [NAND] Blackfin NFC Driver: fix bug - hw ecc calc by making sure we extract 11 bits from each register instead of 10
[MTD] [NAND] Blackfin NFC Driver: fix bug - do not clobber the status from the first 256 bytes if operating on 512 pages
[MTD] [NAND] diskonchip.c fix sparse endian warnings
[MTD] [NAND] drivers/mtd/nand/nandsim.c needs div64.h
[JFFS2] Fix allocation of summary buffer
Fix rename of at91_nand -> atmel_nand
[MTD] [NOR] drivers/mtd/chips/jedec_probe.c: fix Am29DL800BB device ID
[MTD] MTD_DEBUG always does compile-time typechecks
[MTD] DataFlash: bugfix, binary page sizes now handled
[MTD] [NAND] fsl_elbc_nand.c: fix printk warning
[MTD] [NAND] nandsim: support random page read command
[MTD] [NAND] fix subpage read for small page NAND
Diffstat (limited to 'drivers/mtd/nand/diskonchip.c')
-rw-r--r-- | drivers/mtd/nand/diskonchip.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/mtd/nand/diskonchip.c b/drivers/mtd/nand/diskonchip.c index 765d4f0f7c86..e4226e02d63e 100644 --- a/drivers/mtd/nand/diskonchip.c +++ b/drivers/mtd/nand/diskonchip.c | |||
@@ -1125,9 +1125,9 @@ static inline int __init nftl_partscan(struct mtd_info *mtd, struct mtd_partitio | |||
1125 | goto out; | 1125 | goto out; |
1126 | mh = (struct NFTLMediaHeader *)buf; | 1126 | mh = (struct NFTLMediaHeader *)buf; |
1127 | 1127 | ||
1128 | mh->NumEraseUnits = le16_to_cpu(mh->NumEraseUnits); | 1128 | le16_to_cpus(&mh->NumEraseUnits); |
1129 | mh->FirstPhysicalEUN = le16_to_cpu(mh->FirstPhysicalEUN); | 1129 | le16_to_cpus(&mh->FirstPhysicalEUN); |
1130 | mh->FormattedSize = le32_to_cpu(mh->FormattedSize); | 1130 | le32_to_cpus(&mh->FormattedSize); |
1131 | 1131 | ||
1132 | printk(KERN_INFO " DataOrgID = %s\n" | 1132 | printk(KERN_INFO " DataOrgID = %s\n" |
1133 | " NumEraseUnits = %d\n" | 1133 | " NumEraseUnits = %d\n" |
@@ -1235,12 +1235,12 @@ static inline int __init inftl_partscan(struct mtd_info *mtd, struct mtd_partiti | |||
1235 | doc->mh1_page = doc->mh0_page + (4096 >> this->page_shift); | 1235 | doc->mh1_page = doc->mh0_page + (4096 >> this->page_shift); |
1236 | mh = (struct INFTLMediaHeader *)buf; | 1236 | mh = (struct INFTLMediaHeader *)buf; |
1237 | 1237 | ||
1238 | mh->NoOfBootImageBlocks = le32_to_cpu(mh->NoOfBootImageBlocks); | 1238 | le32_to_cpus(&mh->NoOfBootImageBlocks); |
1239 | mh->NoOfBinaryPartitions = le32_to_cpu(mh->NoOfBinaryPartitions); | 1239 | le32_to_cpus(&mh->NoOfBinaryPartitions); |
1240 | mh->NoOfBDTLPartitions = le32_to_cpu(mh->NoOfBDTLPartitions); | 1240 | le32_to_cpus(&mh->NoOfBDTLPartitions); |
1241 | mh->BlockMultiplierBits = le32_to_cpu(mh->BlockMultiplierBits); | 1241 | le32_to_cpus(&mh->BlockMultiplierBits); |
1242 | mh->FormatFlags = le32_to_cpu(mh->FormatFlags); | 1242 | le32_to_cpus(&mh->FormatFlags); |
1243 | mh->PercentUsed = le32_to_cpu(mh->PercentUsed); | 1243 | le32_to_cpus(&mh->PercentUsed); |
1244 | 1244 | ||
1245 | printk(KERN_INFO " bootRecordID = %s\n" | 1245 | printk(KERN_INFO " bootRecordID = %s\n" |
1246 | " NoOfBootImageBlocks = %d\n" | 1246 | " NoOfBootImageBlocks = %d\n" |
@@ -1277,12 +1277,12 @@ static inline int __init inftl_partscan(struct mtd_info *mtd, struct mtd_partiti | |||
1277 | /* Scan the partitions */ | 1277 | /* Scan the partitions */ |
1278 | for (i = 0; (i < 4); i++) { | 1278 | for (i = 0; (i < 4); i++) { |
1279 | ip = &(mh->Partitions[i]); | 1279 | ip = &(mh->Partitions[i]); |
1280 | ip->virtualUnits = le32_to_cpu(ip->virtualUnits); | 1280 | le32_to_cpus(&ip->virtualUnits); |
1281 | ip->firstUnit = le32_to_cpu(ip->firstUnit); | 1281 | le32_to_cpus(&ip->firstUnit); |
1282 | ip->lastUnit = le32_to_cpu(ip->lastUnit); | 1282 | le32_to_cpus(&ip->lastUnit); |
1283 | ip->flags = le32_to_cpu(ip->flags); | 1283 | le32_to_cpus(&ip->flags); |
1284 | ip->spareUnits = le32_to_cpu(ip->spareUnits); | 1284 | le32_to_cpus(&ip->spareUnits); |
1285 | ip->Reserved0 = le32_to_cpu(ip->Reserved0); | 1285 | le32_to_cpus(&ip->Reserved0); |
1286 | 1286 | ||
1287 | printk(KERN_INFO " PARTITION[%d] ->\n" | 1287 | printk(KERN_INFO " PARTITION[%d] ->\n" |
1288 | " virtualUnits = %d\n" | 1288 | " virtualUnits = %d\n" |