mtd: davinci_nand: remove redundant mtd_device_unregister

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Nov 7 11:59:12 EST 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=3b36013cf9cc1a1da93ad6bb8f6d3b0221f67e42
Commit:     3b36013cf9cc1a1da93ad6bb8f6d3b0221f67e42
Parent:     0870066d7e6c85bbe37741137e4c4731501a98e0
Author:     Axel Lin <axel.lin at gmail.com>
AuthorDate: Wed Jun 8 21:01:37 2011 +0800
Committer:  Artem Bityutskiy <artem.bityutskiy at intel.com>
CommitDate: Sun Sep 11 15:02:05 2011 +0300

    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 <axel.lin at gmail.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
---
 drivers/mtd/nand/davinci_nand.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
index 0c582ed..70c92a5 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)



More information about the linux-mtd-cvs mailing list