Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274839
b: refs/heads/master
c: 58171cb
h: refs/heads/master
i:
  274837: 761c7e2
  274835: f97bea9
  274831: e759520
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent ba4776e commit 135cc69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 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: ef5d79f1e15ded65af7a75fc464d5dd246a912c7
refs/heads/master: 58171cb1422ed72192cde5573f26e6bd3c5c98f0
19 changes: 2 additions & 17 deletions trunk/drivers/mtd/nand/bcm_umi_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,23 +489,8 @@ static int __devinit bcm_umi_nand_probe(struct platform_device *pdev)
}

/* Register the partitions */
{
int nr_partitions;
struct mtd_partition *partition_info;

board_mtd->name = "bcm_umi-nand";
nr_partitions = parse_mtd_partitions(board_mtd, NULL,
&partition_info, 0);

if (nr_partitions <= 0) {
printk(KERN_ERR "BCM UMI NAND: Too few partitions - %d\n",
nr_partitions);
iounmap(bcm_umi_io_base);
kfree(board_mtd);
return -EIO;
}
mtd_device_register(board_mtd, partition_info, nr_partitions);
}
board_mtd->name = "bcm_umi-nand";
mtd_device_parse_register(board_mtd, NULL, 0, NULL, 0);

/* Return happy */
return 0;
Expand Down

0 comments on commit 135cc69

Please sign in to comment.