Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201568
b: refs/heads/master
c: cce0246
h: refs/heads/master
v: v3
  • Loading branch information
Baruch Siach authored and Sascha Hauer committed Jul 26, 2010
1 parent e75ce4a commit 5ce680f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ea32021c173c0c97482a1342a9069733032b647
refs/heads/master: cce02464dd4733e8173d01a9a7a3ff5491c8546b
4 changes: 4 additions & 0 deletions trunk/arch/arm/plat-mxc/include/mach/mxc_nand.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@
#ifndef __ASM_ARCH_NAND_H
#define __ASM_ARCH_NAND_H

#include <linux/mtd/partitions.h>

struct mxc_nand_platform_data {
int width; /* data bus width in bytes */
int hw_ecc:1; /* 0 if supress hardware ECC */
int flash_bbt:1; /* set to 1 to use a flash based bbt */
struct mtd_partition *parts; /* partition table */
int nr_parts; /* size of parts */
};
#endif /* __ASM_ARCH_NAND_H */
2 changes: 2 additions & 0 deletions trunk/drivers/mtd/nand/mxc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,8 @@ static int __init mxcnd_probe(struct platform_device *pdev)
parse_mtd_partitions(mtd, part_probes, &host->parts, 0);
if (nr_parts > 0)
add_mtd_partitions(mtd, host->parts, nr_parts);
else if (pdata->parts)
add_mtd_partitions(mtd, pdata->parts, pdata->nr_parts);
else
#endif
{
Expand Down

0 comments on commit 5ce680f

Please sign in to comment.