Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165467
b: refs/heads/master
c: 3ff230a
h: refs/heads/master
i:
  165465: a520f41
  165463: 0ecce88
v: v3
  • Loading branch information
Timofei Bondarenko authored and David Woodhouse committed Sep 19, 2009
1 parent 1682d1d commit 8619a95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9aff1b1afe9a30c358d1c3a0bb50ae77bd7f994b
refs/heads/master: 3ff230a742b8fc196c1fe69875a57a429877cacb
8 changes: 8 additions & 0 deletions trunk/drivers/mtd/maps/uclinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ static int __init uclinux_mtd_init(void)
mtd->priv = mapp;

uclinux_ram_mtdinfo = mtd;
#ifdef CONFIG_MTD_PARTITIONS
add_mtd_partitions(mtd, uclinux_romfs, NUM_PARTITIONS);
#else
add_mtd_device(mtd);
#endif

return(0);
}
Expand All @@ -99,7 +103,11 @@ static int __init uclinux_mtd_init(void)
static void __exit uclinux_mtd_cleanup(void)
{
if (uclinux_ram_mtdinfo) {
#ifdef CONFIG_MTD_PARTITIONS
del_mtd_partitions(uclinux_ram_mtdinfo);
#else
del_mtd_device(uclinux_ram_mtdinfo);
#endif
map_destroy(uclinux_ram_mtdinfo);
uclinux_ram_mtdinfo = NULL;
}
Expand Down

0 comments on commit 8619a95

Please sign in to comment.