Commit b0794825 authored by Axel Lin's avatar Axel Lin Committed by Artem Bityutskiy

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: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarJamie Iles <jamie@jamieiles.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 5507766b
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment