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

« back to all changes in this revision

Viewing changes to drivers/mtd/devices/doc2001.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:
376
376
                this->nextdoc = docmillist;
377
377
                docmillist = mtd;
378
378
                mtd->size  = this->totlen;
379
 
                add_mtd_device(mtd);
 
379
                mtd_device_register(mtd, NULL, 0);
380
380
                return;
381
381
        }
382
382
}
826
826
                this = mtd->priv;
827
827
                docmillist = this->nextdoc;
828
828
 
829
 
                del_mtd_device(mtd);
 
829
                mtd_device_unregister(mtd);
830
830
 
831
831
                iounmap(this->virtadr);
832
832
                kfree(this->chips);