mtd: denali: remove calling mtd_device_unregister() after nand_release()
authorAxel Lin <axel.lin@gmail.com>
Fri, 3 Jun 2011 01:12:15 +0000 (09:12 +0800)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:01:58 +0000 (15:01 +0300)
The implementation of nand_release() already call mtd_device_unregister(),
no need to call it again.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/nand/denali.c

index ee3014505af2d0946ded50f1fc53dc432a712d08..eebdfb5148e63287a0f16a4211ddd6badec382ba 100644 (file)
@@ -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);