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

« back to all changes in this revision

Viewing changes to drivers/mtd/maps/fortunet.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:
243
243
                                        &map_regions[ix].map_info);
244
244
                        }
245
245
                        map_regions[ix].mymtd->owner = THIS_MODULE;
246
 
                        add_mtd_partitions(map_regions[ix].mymtd,
247
 
                                map_regions[ix].parts,map_regions_parts[ix]);
 
246
                        mtd_device_register(map_regions[ix].mymtd,
 
247
                                            map_regions[ix].parts,
 
248
                                            map_regions_parts[ix]);
248
249
                }
249
250
        }
250
251
        if(iy)
261
262
                {
262
263
                        if( map_regions[ix].mymtd )
263
264
                        {
264
 
                                del_mtd_partitions( map_regions[ix].mymtd );
 
265
                                mtd_device_unregister(map_regions[ix].mymtd);
265
266
                                map_destroy( map_regions[ix].mymtd );
266
267
                        }
267
268
                        iounmap((void *)map_regions[ix].map_info.virt);