From: Axel Lin Date: Wed, 8 Jun 2011 13:01:37 +0000 (+0800) Subject: mtd: davinci_nand: remove redundant mtd_device_unregister X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3b36013cf9cc1a1da93ad6bb8f6d3b0221f67e42;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mtd: davinci_nand: remove redundant mtd_device_unregister mtd_device_unregister is done in nand_release(), thus no need to call it in nand_davinci_remove(). Signed-off-by: Axel Lin Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index 0c582ed98e43..70c92a527f6b 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c @@ -811,9 +811,6 @@ err_nomem: static int __exit nand_davinci_remove(struct platform_device *pdev) { struct davinci_nand_info *info = platform_get_drvdata(pdev); - int status; - - status = mtd_device_unregister(&info->mtd); spin_lock_irq(&davinci_nand_lock); if (info->chip.ecc.mode == NAND_ECC_HW_SYNDROME)