Skip to content

Commit

Permalink
Merge git://git.infradead.org/~dwmw2/mtd-2.6.26
Browse files Browse the repository at this point in the history
* git://git.infradead.org/~dwmw2/mtd-2.6.26:
  [MTD] [MAPS] Fix cmdlineparse handling in mapping files
  [MTD] [NAND] pxa: fix incorrect calling of pxa3xx_nand_config() on resume path
  • Loading branch information
Linus Torvalds committed Jun 5, 2008
2 parents adbd588 + ba75321 commit 698f7a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/mtd/maps/omap_nor.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static int __init omapflash_probe(struct platform_device *pdev)
err = parse_mtd_partitions(info->mtd, part_probes, &info->parts, 0);
if (err > 0)
add_mtd_partitions(info->mtd, info->parts, err);
else if (err < 0 && pdata->parts)
else if (err <= 0 && pdata->parts)
add_mtd_partitions(info->mtd, pdata->parts, pdata->nr_parts);
else
#endif
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/pxa3xx_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ static int pxa3xx_nand_resume(struct platform_device *pdev)

clk_enable(info->clk);

return pxa3xx_nand_config_flash(info);
return pxa3xx_nand_config_flash(info, info->flash_info);
}
#else
#define pxa3xx_nand_suspend NULL
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/onenand/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static int __devinit generic_onenand_probe(struct device *dev)
err = parse_mtd_partitions(&info->mtd, part_probes, &info->parts, 0);
if (err > 0)
add_mtd_partitions(&info->mtd, info->parts, err);
else if (err < 0 && pdata->parts)
else if (err <= 0 && pdata->parts)
add_mtd_partitions(&info->mtd, pdata->parts, pdata->nr_parts);
else
#endif
Expand Down

0 comments on commit 698f7a4

Please sign in to comment.