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

« back to all changes in this revision

Viewing changes to drivers/mtd/maps/rpxlite.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:
36
36
        mymtd = do_map_probe("cfi_probe", &rpxlite_map);
37
37
        if (mymtd) {
38
38
                mymtd->owner = THIS_MODULE;
39
 
                add_mtd_device(mymtd);
 
39
                mtd_device_register(mymtd, NULL, 0);
40
40
                return 0;
41
41
        }
42
42
 
47
47
static void __exit cleanup_rpxlite(void)
48
48
{
49
49
        if (mymtd) {
50
 
                del_mtd_device(mymtd);
 
50
                mtd_device_unregister(mymtd);
51
51
                map_destroy(mymtd);
52
52
        }
53
53
        if (rpxlite_map.virt) {