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

« back to all changes in this revision

Viewing changes to drivers/mtd/nand/autcpu12.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:
176
176
         */
177
177
        this->options = NAND_USE_FLASH_BBT;
178
178
 
179
 
        /* Scan to find existance of the device */
 
179
        /* Scan to find existence of the device */
180
180
        if (nand_scan(autcpu12_mtd, 1)) {
181
181
                err = -ENXIO;
182
182
                goto out_ior;
185
185
        /* Register the partitions */
186
186
        switch (autcpu12_mtd->size) {
187
187
                case SZ_16M:
188
 
                        add_mtd_partitions(autcpu12_mtd, partition_info16k,
189
 
                                           NUM_PARTITIONS16K);
 
188
                        mtd_device_register(autcpu12_mtd, partition_info16k,
 
189
                                            NUM_PARTITIONS16K);
190
190
                        break;
191
191
                case SZ_32M:
192
 
                        add_mtd_partitions(autcpu12_mtd, partition_info32k,
193
 
                                           NUM_PARTITIONS32K);
 
192
                        mtd_device_register(autcpu12_mtd, partition_info32k,
 
193
                                            NUM_PARTITIONS32K);
194
194
                        break;
195
195
                case SZ_64M:
196
 
                        add_mtd_partitions(autcpu12_mtd, partition_info64k,
197
 
                                           NUM_PARTITIONS64K);
 
196
                        mtd_device_register(autcpu12_mtd, partition_info64k,
 
197
                                            NUM_PARTITIONS64K);
198
198
                        break;
199
199
                case SZ_128M:
200
 
                        add_mtd_partitions(autcpu12_mtd, partition_info128k,
201
 
                                           NUM_PARTITIONS128K);
 
200
                        mtd_device_register(autcpu12_mtd, partition_info128k,
 
201
                                            NUM_PARTITIONS128K);
202
202
                        break;
203
203
                default:
204
204
                        printk("Unsupported SmartMedia device\n");