Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8543
b: refs/heads/master
c: f6515db
h: refs/heads/master
i:
  8541: 4a8c8df
  8539: b80e305
  8535: 23ba0e5
  8527: 9fce484
  8511: d2fe88e
v: v3
  • Loading branch information
Greg Ungerer authored and Linus Torvalds committed Sep 12, 2005
1 parent 6ed255e commit 2d1981a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: b0433b99339a9fdc2effe213491812556e4896fb
refs/heads/master: f6515db47e6d8cb502e4b0fd7255652da4ba1393
13 changes: 5 additions & 8 deletions trunk/drivers/mtd/maps/uclinux.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
#include <linux/mtd/partitions.h>
#include <asm/io.h>

/****************************************************************************/


/****************************************************************************/

struct map_info uclinux_ram_map = {
Expand Down Expand Up @@ -60,14 +57,15 @@ int __init uclinux_mtd_init(void)
struct mtd_info *mtd;
struct map_info *mapp;
extern char _ebss;
unsigned long addr = (unsigned long) &_ebss;

mapp = &uclinux_ram_map;
mapp->phys = (unsigned long) &_ebss;
mapp->size = PAGE_ALIGN(*((unsigned long *)((&_ebss) + 8)));
mapp->phys = addr;
mapp->size = PAGE_ALIGN(ntohl(*((unsigned long *)(addr + 8))));
mapp->bankwidth = 4;

printk("uclinux[mtd]: RAM probe address=0x%x size=0x%x\n",
(int) mapp->map_priv_2, (int) mapp->size);
(int) mapp->phys, (int) mapp->size);

mapp->virt = ioremap_nocache(mapp->phys, mapp->size);

Expand Down Expand Up @@ -95,7 +93,6 @@ int __init uclinux_mtd_init(void)
printk("uclinux[mtd]: set %s to be root filesystem\n",
uclinux_romfs[0].name);
ROOT_DEV = MKDEV(MTD_BLOCK_MAJOR, 0);
put_mtd_device(mtd);

return(0);
}
Expand All @@ -109,7 +106,7 @@ void __exit uclinux_mtd_cleanup(void)
map_destroy(uclinux_ram_mtdinfo);
uclinux_ram_mtdinfo = NULL;
}
if (uclinux_ram_map.map_priv_1) {
if (uclinux_ram_map.virt) {
iounmap((void *) uclinux_ram_map.virt);
uclinux_ram_map.virt = 0;
}
Expand Down

0 comments on commit 2d1981a

Please sign in to comment.