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:
parent
5507766b63
commit
b07948251f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue