Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274850
b: refs/heads/master
c: c9dd375
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent cdf6c56 commit 04969d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: 69c85f1f66888e0ad532f8bb37db81ca1e7e56f0
refs/heads/master: c9dd375f553e6ff1862401decb1b585929285b56
12 changes: 2 additions & 10 deletions trunk/drivers/mtd/nand/orion_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ static int __init orion_nand_probe(struct platform_device *pdev)
struct resource *res;
void __iomem *io_base;
int ret = 0;
struct mtd_partition *partitions = NULL;
int num_part = 0;

nc = kzalloc(sizeof(struct nand_chip) + sizeof(struct mtd_info), GFP_KERNEL);
if (!nc) {
Expand Down Expand Up @@ -131,14 +129,8 @@ static int __init orion_nand_probe(struct platform_device *pdev)
}

mtd->name = "orion_nand";
num_part = parse_mtd_partitions(mtd, NULL, &partitions, 0);
/* If cmdline partitions have been passed, let them be used */
if (num_part <= 0) {
num_part = board->nr_parts;
partitions = board->parts;
}

ret = mtd_device_register(mtd, partitions, num_part);
ret = mtd_device_parse_register(mtd, NULL, 0,
board->parts, board->nr_parts);
if (ret) {
nand_release(mtd);
goto no_dev;
Expand Down

0 comments on commit 04969d6

Please sign in to comment.