Skip to content

Commit

Permalink
mtd: denali: remove calling mtd_device_unregister() after nand_release()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 5507766 commit b079482
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/mtd/nand/denali.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b079482

Please sign in to comment.