Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274846
b: refs/heads/master
c: 4571c13
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent b90437f commit e3f665f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 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: 0d04eda1430e9a796214bee644b7e05d99cfe613
refs/heads/master: 4571c1396260d3f235d987f4acdadfba820f57bf
15 changes: 2 additions & 13 deletions trunk/drivers/mtd/nand/h1910.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ static int h1910_device_ready(struct mtd_info *mtd)
static int __init h1910_init(void)
{
struct nand_chip *this;
const char *part_type = 0;
int mtd_parts_nb = 0;
struct mtd_partition *mtd_parts = 0;
void __iomem *nandaddr;

if (!machine_is_h1900())
Expand Down Expand Up @@ -136,18 +133,10 @@ static int __init h1910_init(void)
iounmap((void *)nandaddr);
return -ENXIO;
}
mtd_parts_nb = parse_mtd_partitions(h1910_nand_mtd, NULL, &mtd_parts, 0);
if (mtd_parts_nb > 0)
part_type = "command line";
else {
mtd_parts = partition_info;
mtd_parts_nb = NUM_PARTITIONS;
part_type = "static";
}

/* Register the partitions */
printk(KERN_NOTICE "Using %s partition definition\n", part_type);
mtd_device_register(h1910_nand_mtd, mtd_parts, mtd_parts_nb);
mtd_device_parse_register(h1910_nand_mtd, NULL, 0,
partition_info, NUM_PARTITIONS);

/* Return happy */
return 0;
Expand Down

0 comments on commit e3f665f

Please sign in to comment.