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

« back to all changes in this revision

Viewing changes to drivers/mtd/maps/dbox2-flash.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:
93
93
                mymtd->owner = THIS_MODULE;
94
94
 
95
95
                /* Create MTD devices for each partition. */
96
 
                add_mtd_partitions(mymtd, partition_info, NUM_PARTITIONS);
 
96
                mtd_device_register(mymtd, partition_info, NUM_PARTITIONS);
97
97
 
98
98
                return 0;
99
99
        }
105
105
static void __exit cleanup_dbox2_flash(void)
106
106
{
107
107
        if (mymtd) {
108
 
                del_mtd_partitions(mymtd);
 
108
                mtd_device_unregister(mymtd);
109
109
                map_destroy(mymtd);
110
110
        }
111
111
        if (dbox2_flash_map.virt) {