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@gmail.com>
Acked-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
Axel Lin 2011-06-03 09:12:15 +08:00 committed by Artem Bityutskiy
parent 5507766b63
commit b07948251f
1 changed files with 0 additions and 1 deletions

View 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);