Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274844
b: refs/heads/master
c: 6cb03c9
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 501c7a0 commit abec1cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 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: 5b55b1eb21a5aba9c6cf4e0325ac9e4dffa89435
refs/heads/master: 6cb03c9cb520186859a034e4e829fb591aea78b6
17 changes: 2 additions & 15 deletions trunk/drivers/mtd/nand/edb7312.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ static int ep7312_device_ready(struct mtd_info *mtd)
static int __init ep7312_init(void)
{
struct nand_chip *this;
const char *part_type = 0;
int mtd_parts_nb = 0;
struct mtd_partition *mtd_parts = 0;
void __iomem *ep7312_fio_base;

/* Allocate memory for MTD device structure and private data */
Expand Down Expand Up @@ -156,20 +153,10 @@ static int __init ep7312_init(void)
return -ENXIO;
}
ep7312_mtd->name = "edb7312-nand";
mtd_parts_nb = parse_mtd_partitions(ep7312_mtd, NULL, &mtd_parts, 0);
if (mtd_parts_nb > 0)
part_type = "command line";
else
mtd_parts_nb = 0;
if (mtd_parts_nb == 0) {
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(ep7312_mtd, mtd_parts, mtd_parts_nb);
mtd_device_register(ep7312_mtd, NULL, 0,
partition_info, NUM_PARTITIONS);

/* Return happy */
return 0;
Expand Down

0 comments on commit abec1cb

Please sign in to comment.