public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: denali: remove calling mtd_device_unregister() after nand_release()
@ 2011-06-03  1:12 Axel Lin
  2011-06-03  9:20 ` Jamie Iles
  2011-06-06 10:07 ` Artem Bityutskiy
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2011-06-03  1:12 UTC (permalink / raw)
  To: linux-kernel
  Cc: Sudhakar Rajashekhara, Jamie Iles, David Woodhouse,
	Artem Bityutskiy, linux-mtd

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>
---
 drivers/mtd/nand/denali.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index d527621..e119748 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -1676,7 +1676,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);
 
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-06 10:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-03  1:12 [PATCH] mtd: denali: remove calling mtd_device_unregister() after nand_release() Axel Lin
2011-06-03  9:20 ` Jamie Iles
2011-06-06 10:07 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox