Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274857
b: refs/heads/master
c: 9e58c5d
h: refs/heads/master
i:
  274855: cd4b597
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 94c7255 commit 6b91472
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: 68adef5db85d147943ed97bbd148a712b2323ecc
refs/heads/master: 9e58c5d42ff69e7d99cc8e37082f58ba44e7fa7d
7 changes: 1 addition & 6 deletions trunk/drivers/mtd/nand/txx9ndfmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ struct txx9ndfmc_drvdata {
unsigned char hold; /* in gbusclock */
unsigned char spw; /* in gbusclock */
struct nand_hw_control hw_control;
struct mtd_partition *parts[MAX_TXX9NDFMC_DEV];
};

static struct platform_device *mtd_to_platdev(struct mtd_info *mtd)
Expand Down Expand Up @@ -332,7 +331,6 @@ static int __init txx9ndfmc_probe(struct platform_device *dev)
struct txx9ndfmc_priv *txx9_priv;
struct nand_chip *chip;
struct mtd_info *mtd;
int nr_parts;

if (!(plat->ch_mask & (1 << i)))
continue;
Expand Down Expand Up @@ -392,9 +390,7 @@ static int __init txx9ndfmc_probe(struct platform_device *dev)
}
mtd->name = txx9_priv->mtdname;

nr_parts = parse_mtd_partitions(mtd, NULL,
&drvdata->parts[i], 0);
mtd_device_register(mtd, drvdata->parts[i], nr_parts);
mtd_device_parse_register(mtd, NULL, 0, NULL, 0);
drvdata->mtds[i] = mtd;
}

Expand All @@ -420,7 +416,6 @@ static int __exit txx9ndfmc_remove(struct platform_device *dev)
txx9_priv = chip->priv;

nand_release(mtd);
kfree(drvdata->parts[i]);
kfree(txx9_priv->mtdname);
kfree(txx9_priv);
}
Expand Down

0 comments on commit 6b91472

Please sign in to comment.