Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274882
b: refs/heads/master
c: a910649
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 603a5b5 commit 29e8234
Show file tree
Hide file tree
Showing 2 changed files with 2 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: a9093f064eb053c1b9fca8b8026577c0b3b9aa8a
refs/heads/master: a9106497082c5b9d2b367159573127c2c9ced4b6
7 changes: 1 addition & 6 deletions trunk/drivers/mtd/nand/ndfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ struct ndfc_controller {
struct nand_chip chip;
int chip_select;
struct nand_hw_control ndfc_control;
struct mtd_partition *parts;
};

static struct ndfc_controller ndfc_ctrl[NDFC_MAX_CS];
Expand Down Expand Up @@ -201,11 +200,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc,
if (ret)
goto err;

ret = parse_mtd_partitions(&ndfc->mtd, NULL, &ndfc->parts, &ppdata);
if (ret < 0)
goto err;

ret = mtd_device_register(&ndfc->mtd, ndfc->parts, ret);
ret = mtd_device_parse_register(&ndfc->mtd, NULL, &ppdata, NULL, 0);

err:
of_node_put(flash_np);
Expand Down

0 comments on commit 29e8234

Please sign in to comment.