Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4471
b: refs/heads/master
c: f29a4b8
h: refs/heads/master
i:
  4469: 0de345f
  4467: 5e03454
  4463: 8e8517d
v: v3
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed May 23, 2005
1 parent 8c23a90 commit 8dd3392
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 39605398cd45941b4ed2026c666a1a9f39c40490
refs/heads/master: f29a4b86f554a496beba8d339917399b9c44fbc9
6 changes: 5 additions & 1 deletion trunk/drivers/mtd/nand/diskonchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* Interface to generic NAND code for M-Systems DiskOnChip devices
*
* $Id: diskonchip.c,v 1.47 2005/01/31 22:21:15 gleixner Exp $
* $Id: diskonchip.c,v 1.48 2005/01/31 22:22:21 gleixner Exp $
*/

#include <linux/kernel.h>
Expand Down Expand Up @@ -1122,6 +1122,10 @@ static inline int __init nftl_partscan(struct mtd_info *mtd,
if (!(numheaders=find_media_headers(mtd, buf, "ANAND", 1))) goto out;
mh = (struct NFTLMediaHeader *) buf;

mh->NumEraseUnits = le16_to_cpu(mh->NumEraseUnits);
mh->FirstPhysicalEUN = le16_to_cpu(mh->FirstPhysicalEUN);
mh->FormattedSize = le32_to_cpu(mh->FormattedSize);

printk(KERN_INFO " DataOrgID = %s\n"
" NumEraseUnits = %d\n"
" FirstPhysicalEUN = %d\n"
Expand Down

0 comments on commit 8dd3392

Please sign in to comment.