uclinux.c (2fc2991175bf77395e6b15fe6b2304d3bf72da40) uclinux.c (69f34c98c1416eb74c55e38a21dbf3e294966514)
1/****************************************************************************/
2
3/*
4 * uclinux.c -- generic memory mapped MTD driver for uclinux
5 *
6 * (C) Copyright 2002, Greg Ungerer (gerg@snapgear.com)
7 *
1/****************************************************************************/
2
3/*
4 * uclinux.c -- generic memory mapped MTD driver for uclinux
5 *
6 * (C) Copyright 2002, Greg Ungerer (gerg@snapgear.com)
7 *
8 * $Id: uclinux.c,v 1.10 2005/01/05 18:05:13 dwmw2 Exp $
8 * $Id: uclinux.c,v 1.12 2005/11/07 11:14:29 gleixner Exp $
9 */
10
11/****************************************************************************/
12
13#include <linux/config.h>
14#include <linux/module.h>
15#include <linux/types.h>
16#include <linux/init.h>

--- 60 unchanged lines hidden (view full) ---

77 simple_map_init(mapp);
78
79 mtd = do_map_probe("map_ram", mapp);
80 if (!mtd) {
81 printk("uclinux[mtd]: failed to find a mapping?\n");
82 iounmap(mapp->virt);
83 return(-ENXIO);
84 }
9 */
10
11/****************************************************************************/
12
13#include <linux/config.h>
14#include <linux/module.h>
15#include <linux/types.h>
16#include <linux/init.h>

--- 60 unchanged lines hidden (view full) ---

77 simple_map_init(mapp);
78
79 mtd = do_map_probe("map_ram", mapp);
80 if (!mtd) {
81 printk("uclinux[mtd]: failed to find a mapping?\n");
82 iounmap(mapp->virt);
83 return(-ENXIO);
84 }
85
85
86 mtd->owner = THIS_MODULE;
87 mtd->point = uclinux_point;
88 mtd->priv = mapp;
89
90 uclinux_ram_mtdinfo = mtd;
91 add_mtd_partitions(mtd, uclinux_romfs, NUM_PARTITIONS);
92
93 printk("uclinux[mtd]: set %s to be root filesystem\n",

--- 31 unchanged lines hidden ---
86 mtd->owner = THIS_MODULE;
87 mtd->point = uclinux_point;
88 mtd->priv = mapp;
89
90 uclinux_ram_mtdinfo = mtd;
91 add_mtd_partitions(mtd, uclinux_romfs, NUM_PARTITIONS);
92
93 printk("uclinux[mtd]: set %s to be root filesystem\n",

--- 31 unchanged lines hidden ---