Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252536
b: refs/heads/master
c: 5e7e968
h: refs/heads/master
v: v3
  • Loading branch information
Jamie Iles authored and David Woodhouse committed May 25, 2011
1 parent 255ec21 commit 914a977
Show file tree
Hide file tree
Showing 3 changed files with 4 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: b5c0a4ea1ba0b6840bc8522c6ce901a7658b395a
refs/heads/master: 5e7e96866df7a9ff7733bd1660e0a3c510bf1b45
2 changes: 1 addition & 1 deletion trunk/drivers/mtd/maps/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ config MTD_GPIO_ADDR

config MTD_UCLINUX
bool "Generic uClinux RAM/ROM filesystem support"
depends on MTD_PARTITIONS && MTD_RAM=y && !MMU
depends on MTD_RAM=y && !MMU
help
Map driver to support image based filesystems for uClinux.

Expand Down
12 changes: 2 additions & 10 deletions trunk/drivers/mtd/maps/uclinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,7 @@ 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
mtd_device_register(mtd, uclinux_romfs, NUM_PARTITIONS);

return(0);
}
Expand All @@ -103,11 +99,7 @@ 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
mtd_device_unregister(uclinux_ram_mtdinfo);
map_destroy(uclinux_ram_mtdinfo);
uclinux_ram_mtdinfo = NULL;
}
Expand Down

0 comments on commit 914a977

Please sign in to comment.