Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274871
b: refs/heads/master
c: a454a29
h: refs/heads/master
i:
  274869: 9e0f3de
  274867: cdf756c
  274863: f0c62a5
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 417057d commit 6b2ab68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: b6b0fae717bd01d6fcdcef70989c4bc9b77ac0c0
refs/heads/master: a454a296aa8e63f5e5c749343a99fd25c37a3c44
11 changes: 3 additions & 8 deletions trunk/drivers/mtd/nand/fsl_upm.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ static int __devinit fun_chip_init(struct fsl_upm_nand *fun,
{
int ret;
struct device_node *flash_np;
struct mtd_part_parser_data ppdata;

fun->chip.IO_ADDR_R = fun->io_base;
fun->chip.IO_ADDR_W = fun->io_base;
Expand Down Expand Up @@ -191,15 +192,9 @@ static int __devinit fun_chip_init(struct fsl_upm_nand *fun,
if (ret)
goto err;

ret = parse_mtd_partitions(&fun->mtd, NULL, &fun->parts, 0);
ppdata.of_node = flash_np;
ret = parse_mtd_partitions(&fun->mtd, NULL, &fun->parts, &ppdata);

#ifdef CONFIG_MTD_OF_PARTS
if (ret == 0) {
ret = of_mtd_parse_partitions(fun->dev, flash_np, &fun->parts);
if (ret < 0)
goto err;
}
#endif
ret = mtd_device_register(&fun->mtd, fun->parts, ret);
err:
of_node_put(flash_np);
Expand Down

0 comments on commit 6b2ab68

Please sign in to comment.