~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/mtd/maps/cfi_flagadm.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
 
35
35
/* We split the flash chip up into four parts.
36
 
 * 1: bootloader firts 128k                     (0x00000000 - 0x0001FFFF) size 0x020000
 
36
 * 1: bootloader first 128k                     (0x00000000 - 0x0001FFFF) size 0x020000
37
37
 * 2: kernel 640k                                       (0x00020000 - 0x000BFFFF) size 0x0A0000
38
38
 * 3: compressed 1536k root ramdisk     (0x000C0000 - 0x0023FFFF) size 0x180000
39
39
 * 4: writeable diskpartition (jffs)(0x00240000 - 0x003FFFFF) size 0x1C0000
107
107
        mymtd = do_map_probe("cfi_probe", &flagadm_map);
108
108
        if (mymtd) {
109
109
                mymtd->owner = THIS_MODULE;
110
 
                add_mtd_partitions(mymtd, flagadm_parts, PARTITION_COUNT);
 
110
                mtd_device_register(mymtd, flagadm_parts, PARTITION_COUNT);
111
111
                printk(KERN_NOTICE "FlagaDM flash device initialized\n");
112
112
                return 0;
113
113
        }
119
119
static void __exit cleanup_flagadm(void)
120
120
{
121
121
        if (mymtd) {
122
 
                del_mtd_partitions(mymtd);
 
122
                mtd_device_unregister(mymtd);
123
123
                map_destroy(mymtd);
124
124
        }
125
125
        if (flagadm_map.virt) {