提交 27a28867 编写于 作者: T Thomas Gleixner

[MTD] NAND: Fix broken sharpsl driver

Remove the not longer supported NO_VIRTBLOCKS flag and remove
an unused variable while at it.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 c6e8c6cc
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部