Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252527
b: refs/heads/master
c: 360e40a
h: refs/heads/master
i:
  252525: 5787be9
  252523: 9beb527
  252519: 292f950
  252511: 6bf6e46
v: v3
  • Loading branch information
Jamie Iles authored and David Woodhouse committed May 25, 2011
1 parent a9e4d30 commit 4d726e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: fdbf3bf6b855233cd618021c702accb69b8b10bc
refs/heads/master: 360e40aedb59799fef4ff58fe6b9436cd487f6e6
6 changes: 2 additions & 4 deletions trunk/drivers/mtd/maps/h720x-flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,16 @@ static int __init h720x_mtd_init(void)
if (mymtd) {
mymtd->owner = THIS_MODULE;

#ifdef CONFIG_MTD_PARTITIONS
nr_mtd_parts = parse_mtd_partitions(mymtd, probes, &mtd_parts, 0);
if (nr_mtd_parts > 0)
part_type = "command line";
#endif
if (nr_mtd_parts <= 0) {
mtd_parts = h720x_partitions;
nr_mtd_parts = NUM_PARTITIONS;
part_type = "builtin";
}
printk(KERN_INFO "Using %s partition table\n", part_type);
add_mtd_partitions(mymtd, mtd_parts, nr_mtd_parts);
mtd_device_register(mymtd, mtd_parts, nr_mtd_parts);
return 0;
}

Expand All @@ -118,7 +116,7 @@ static void __exit h720x_mtd_cleanup(void)
{

if (mymtd) {
del_mtd_partitions(mymtd);
mtd_device_unregister(mymtd);
map_destroy(mymtd);
}

Expand Down

0 comments on commit 4d726e5

Please sign in to comment.