mtd: davinci_nand: remove redundant mtd_device_unregister in nand_davinci_remove
Subsystems (2)
PATCH 1/1 mtd: davinci_nand: remove redundant mtd_device_unregister in nand_davinci_remove
mtd_device_unregister is done in nand_release(),
thus no need to call it in nand_davinci_remove().
Signed-off-by Axel Lin <[email protected]>
--- drivers/mtd/nand/davinci_nand.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
drivers/mtd/nand/davinci_nand.c +0 -3
@@ -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 )
Signature · 1 line
1.7.4.1
Artem Bityutskiy
AppliedQuoted 4 lines · Axel Lin
mtd_device_unregisteris done innand_release(),
thus no need to call it innand_davinci_remove().Signed-off-by Axel Lin <[email protected]>
Pushed to l2-mtd-2.6.git, thanks!
Signature · 2 lines
Best Regards, Artem Bityutskiy (Артём Битюцкий)