Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252543
b: refs/heads/master
c: 0f47e95
h: refs/heads/master
i:
  252541: 65b6961
  252539: 6262922
  252535: 255ec21
  252527: 4d726e5
  252511: 6bf6e46
  252479: 0cd1009
  252415: e5875fe
v: v3
  • Loading branch information
Jamie Iles authored and David Woodhouse committed May 25, 2011
1 parent 697d331 commit 767469c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 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: 098771158813fb391dd6c1c8b907599db91fb0c7
refs/heads/master: 0f47e952fe8b9eb67c24b96e7c48c075657634ba
18 changes: 7 additions & 11 deletions trunk/drivers/mtd/nand/diskonchip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1360,11 +1360,9 @@ static int __init nftl_scan_bbt(struct mtd_info *mtd)
At least as nand_bbt.c is currently written. */
if ((ret = nand_scan_bbt(mtd, NULL)))
return ret;
add_mtd_device(mtd);
#ifdef CONFIG_MTD_PARTITIONS
mtd_device_register(mtd, NULL, 0);
if (!no_autopart)
add_mtd_partitions(mtd, parts, numparts);
#endif
mtd_device_register(mtd, parts, numparts);
return 0;
}

Expand Down Expand Up @@ -1419,11 +1417,9 @@ static int __init inftl_scan_bbt(struct mtd_info *mtd)
autopartitioning, but I want to give it more thought. */
if (!numparts)
return -EIO;
add_mtd_device(mtd);
#ifdef CONFIG_MTD_PARTITIONS
mtd_device_register(mtd, NULL, 0);
if (!no_autopart)
add_mtd_partitions(mtd, parts, numparts);
#endif
mtd_device_register(mtd, parts, numparts);
return 0;
}

Expand Down Expand Up @@ -1678,9 +1674,9 @@ static int __init doc_probe(unsigned long physadr)
/* DBB note: i believe nand_release is necessary here, as
buffers may have been allocated in nand_base. Check with
Thomas. FIX ME! */
/* nand_release will call del_mtd_device, but we haven't yet
added it. This is handled without incident by
del_mtd_device, as far as I can tell. */
/* nand_release will call mtd_device_unregister, but we
haven't yet added it. This is handled without incident by
mtd_device_unregister, as far as I can tell. */
nand_release(mtd);
kfree(mtd);
goto fail;
Expand Down

0 comments on commit 767469c

Please sign in to comment.