[MTD] NAND: Fix broken sharpsl driver
authorThomas Gleixner <tglx@cruncher.tec.linutronix.de>
Thu, 29 Jun 2006 19:25:10 +0000 (21:25 +0200)
committerThomas Gleixner <tglx@cruncher.tec.linutronix.de>
Thu, 29 Jun 2006 19:25:10 +0000 (21:25 +0200)
Remove the not longer supported NO_VIRTBLOCKS flag and remove
an unused variable while at it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/nand/sharpsl.c

index 21743658d1505942e59fd5f1ead23b8fa8cab755..fbeedc3184e913c97c954588ba7db54a604d07e6 100644 (file)
@@ -237,11 +237,6 @@ static int __init sharpsl_nand_init(void)
                }
        }
 
-       if (machine_is_husky() || machine_is_borzoi() || machine_is_akita()) {
-               /* Need to use small eraseblock size for backward compatibility */
-               sharpsl_mtd->flags |= MTD_NO_VIRTBLOCKS;
-       }
-
        add_mtd_partitions(sharpsl_mtd, sharpsl_partition_info, nr_partitions);
 
        /* Return happy */
@@ -255,8 +250,6 @@ module_init(sharpsl_nand_init);
  */
 static void __exit sharpsl_nand_cleanup(void)
 {
-       struct nand_chip *this = (struct nand_chip *)&sharpsl_mtd[1];
-
        /* Release resources, unregister device */
        nand_release(sharpsl_mtd);