Skip to content

Commit

Permalink
[MTD] NAND: Fix broken sharpsl driver
Browse files Browse the repository at this point in the history
Remove the not longer supported NO_VIRTBLOCKS flag and remove
an unused variable while at it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Jun 29, 2006
1 parent c6e8c6c commit 27a2886
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/mtd/nand/sharpsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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);

Expand Down

0 comments on commit 27a2886

Please sign in to comment.