mtd: denali: remove calling mtd_device_unregister() after nand_release()

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


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=b07948251f563379885ac92412fb3885c976e423
Commit:     b07948251f563379885ac92412fb3885c976e423
Parent:     5507766b639e53b9230484588eba8b4e18d0563b
Author:     Axel Lin <axel.lin at gmail.com>
AuthorDate: Fri Jun 3 09:12:15 2011 +0800
Committer:  Artem Bityutskiy <artem.bityutskiy at intel.com>
CommitDate: Sun Sep 11 15:01:58 2011 +0300

    mtd: denali: remove calling mtd_device_unregister() after nand_release()
    
    The implementation of nand_release() already call mtd_device_unregister(),
    no need to call it again.
    
    Signed-off-by: Axel Lin <axel.lin at gmail.com>
    Acked-by: Jamie Iles <jamie at jamieiles.com>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
---
 drivers/mtd/nand/denali.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index ee30145..eebdfb5 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -1677,7 +1677,6 @@ static void denali_pci_remove(struct pci_dev *dev)
 	struct denali_nand_info *denali = pci_get_drvdata(dev);
 
 	nand_release(&denali->mtd);
-	mtd_device_unregister(&denali->mtd);
 
 	denali_irq_cleanup(dev->irq, denali);
 



More information about the linux-mtd-cvs mailing list