Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275495
b: refs/heads/master
c: b2f9094
h: refs/heads/master
i:
  275493: 5d43a30
  275491: c04545e
  275487: e39b541
v: v3
  • Loading branch information
David Daney authored and Ralf Baechle committed Nov 10, 2011
1 parent 36f24f9 commit 2cc787b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: 54b2edf487d497cc522bce91b3bd79538f001d13
refs/heads/master: b2f909419b72cf043814bf17b96c93d4695378a1
9 changes: 2 additions & 7 deletions trunk/arch/mips/cavium-octeon/flash_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

static struct map_info flash_map;
static struct mtd_info *mymtd;
static int nr_parts;
static struct mtd_partition *parts;
static const char *part_probe_types[] = {
"cmdlinepart",
#ifdef CONFIG_MTD_REDBOOT_PARTS
Expand Down Expand Up @@ -61,11 +59,8 @@ static int __init flash_init(void)
mymtd = do_map_probe("cfi_probe", &flash_map);
if (mymtd) {
mymtd->owner = THIS_MODULE;

nr_parts = parse_mtd_partitions(mymtd,
part_probe_types,
&parts, 0);
mtd_device_register(mymtd, parts, nr_parts);
mtd_device_parse_register(mymtd, part_probe_types,
0, NULL, 0);
} else {
pr_err("Failed to register MTD device for flash\n");
}
Expand Down

0 comments on commit 2cc787b

Please sign in to comment.