aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/nand/diskonchip.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/mtd/nand/diskonchip.c b/drivers/mtd/nand/diskonchip.c
index 392240120304..d5927674f283 100644
--- a/drivers/mtd/nand/diskonchip.c
+++ b/drivers/mtd/nand/diskonchip.c
@@ -16,7 +16,7 @@
16 * 16 *
17 * Interface to generic NAND code for M-Systems DiskOnChip devices 17 * Interface to generic NAND code for M-Systems DiskOnChip devices
18 * 18 *
19 * $Id: diskonchip.c,v 1.47 2005/01/31 22:21:15 gleixner Exp $ 19 * $Id: diskonchip.c,v 1.48 2005/01/31 22:22:21 gleixner Exp $
20 */ 20 */
21 21
22#include <linux/kernel.h> 22#include <linux/kernel.h>
@@ -1122,6 +1122,10 @@ static inline int __init nftl_partscan(struct mtd_info *mtd,
1122 if (!(numheaders=find_media_headers(mtd, buf, "ANAND", 1))) goto out; 1122 if (!(numheaders=find_media_headers(mtd, buf, "ANAND", 1))) goto out;
1123 mh = (struct NFTLMediaHeader *) buf; 1123 mh = (struct NFTLMediaHeader *) buf;
1124 1124
1125 mh->NumEraseUnits = le16_to_cpu(mh->NumEraseUnits);
1126 mh->FirstPhysicalEUN = le16_to_cpu(mh->FirstPhysicalEUN);
1127 mh->FormattedSize = le32_to_cpu(mh->FormattedSize);
1128
1125 printk(KERN_INFO " DataOrgID = %s\n" 1129 printk(KERN_INFO " DataOrgID = %s\n"
1126 " NumEraseUnits = %d\n" 1130 " NumEraseUnits = %d\n"
1127 " FirstPhysicalEUN = %d\n" 1131 " FirstPhysicalEUN = %d\n"