Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252551
b: refs/heads/master
c: 759f1d3
h: refs/heads/master
i:
  252549: 4650938
  252547: 88754e3
  252543: 767469c
v: v3
  • Loading branch information
Jamie Iles authored and David Woodhouse committed May 25, 2011
1 parent 10b98eb commit 746781f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 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: 248f56d3870c03a031755a403f942028c68d39e2
refs/heads/master: 759f1d325c381470a48c666eb2430af4834ef3ee
13 changes: 4 additions & 9 deletions trunk/drivers/mtd/nand/mxc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,7 @@ static struct nand_ecclayout nandv2_hw_eccoob_4k = {
}
};

#ifdef CONFIG_MTD_PARTITIONS
static const char *part_probes[] = { "RedBoot", "cmdlinepart", NULL };
#endif

static irqreturn_t mxc_nfc_irq(int irq, void *dev_id)
{
Expand Down Expand Up @@ -1233,18 +1231,15 @@ static int __init mxcnd_probe(struct platform_device *pdev)
}

/* Register the partitions */
#ifdef CONFIG_MTD_PARTITIONS
nr_parts =
parse_mtd_partitions(mtd, part_probes, &host->parts, 0);
if (nr_parts > 0)
add_mtd_partitions(mtd, host->parts, nr_parts);
mtd_device_register(mtd, host->parts, nr_parts);
else if (pdata->parts)
add_mtd_partitions(mtd, pdata->parts, pdata->nr_parts);
else
#endif
{
mtd_device_register(mtd, pdata->parts, pdata->nr_parts);
else {
pr_info("Registering %s as whole device\n", mtd->name);
add_mtd_device(mtd);
mtd_device_register(mtd, NULL, 0);
}

platform_set_drvdata(pdev, host);
Expand Down

0 comments on commit 746781f

Please sign in to comment.