Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84269
b: refs/heads/master
c: 842b1a1
h: refs/heads/master
i:
  84267: b45895b
v: v3
  • Loading branch information
Atsushi Nemoto authored and David Woodhouse committed Feb 3, 2008
1 parent 9f9f95b commit d28b3c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 79dcd8e9e1f2864ade80f45e144e5e80fef71613
refs/heads/master: 842b1a105c95d22c3e4257879539413d3152629e
12 changes: 6 additions & 6 deletions trunk/drivers/mtd/nand/at91_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ static int __init at91_nand_probe(struct platform_device *pdev)
}

#ifdef CONFIG_MTD_PARTITIONS
if (host->board->partition_info)
partitions = host->board->partition_info(mtd->size, &num_partitions);
#ifdef CONFIG_MTD_CMDLINE_PARTS
else {
mtd->name = "at91_nand";
num_partitions = parse_mtd_partitions(mtd, part_probes, &partitions, 0);
}
mtd->name = "at91_nand";
num_partitions = parse_mtd_partitions(mtd, part_probes,
&partitions, 0);
#endif
if (num_partitions <= 0 && host->board->partition_info)
partitions = host->board->partition_info(mtd->size,
&num_partitions);

if ((!partitions) || (num_partitions == 0)) {
printk(KERN_ERR "at91_nand: No parititions defined, or unsupported device.\n");
Expand Down

0 comments on commit d28b3c2

Please sign in to comment.