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

« back to all changes in this revision

Viewing changes to drivers/mtd/devices/doc2001plus.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:
90
90
        return ret;
91
91
}
92
92
 
93
 
/* For some reason the Millennium Plus seems to occassionally put itself
 
93
/* For some reason the Millennium Plus seems to occasionally put itself
94
94
 * into reset mode. For me this happens randomly, with no pattern that I
95
95
 * can detect. M-systems suggest always check this on any block level
96
96
 * operation and setting to normal mode if in reset mode.
499
499
                docmilpluslist = mtd;
500
500
                mtd->size  = this->totlen;
501
501
                mtd->erasesize = this->erasesize;
502
 
                add_mtd_device(mtd);
 
502
                mtd_device_register(mtd, NULL, 0);
503
503
                return;
504
504
        }
505
505
}
1091
1091
                this = mtd->priv;
1092
1092
                docmilpluslist = this->nextdoc;
1093
1093
 
1094
 
                del_mtd_device(mtd);
 
1094
                mtd_device_unregister(mtd);
1095
1095
 
1096
1096
                iounmap(this->virtadr);
1097
1097
                kfree(this->chips);