public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: davinci_nand: remove redundant mtd_device_unregister in nand_davinci_remove
@ 2011-06-08 13:01 Axel Lin
  2011-06-08 14:52 ` Artem Bityutskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-06-08 13:01 UTC (permalink / raw)
  To: linux-kernel; +Cc: David Woodhouse, Artem Bityutskiy, linux-mtd

mtd_device_unregister is done in nand_release(),
thus no need to call it in nand_davinci_remove().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/mtd/nand/davinci_nand.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
index 0c582ed..70c92a5 100644
--- a/drivers/mtd/nand/davinci_nand.c
+++ b/drivers/mtd/nand/davinci_nand.c
@@ -811,9 +811,6 @@ err_nomem:
 static int __exit nand_davinci_remove(struct platform_device *pdev)
 {
 	struct davinci_nand_info *info = platform_get_drvdata(pdev);
-	int status;
-
-	status = mtd_device_unregister(&info->mtd);
 
 	spin_lock_irq(&davinci_nand_lock);
 	if (info->chip.ecc.mode == NAND_ECC_HW_SYNDROME)
-- 
1.7.4.1




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

* Re: [PATCH] mtd: davinci_nand: remove redundant mtd_device_unregister in nand_davinci_remove
  2011-06-08 13:01 [PATCH] mtd: davinci_nand: remove redundant mtd_device_unregister in nand_davinci_remove Axel Lin
@ 2011-06-08 14:52 ` Artem Bityutskiy
  0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2011-06-08 14:52 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, David Woodhouse, linux-mtd

On Wed, 2011-06-08 at 21:01 +0800, Axel Lin wrote:
> mtd_device_unregister is done in nand_release(),
> thus no need to call it in nand_davinci_remove().
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Pushed to l2-mtd-2.6.git, thanks!

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)


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

end of thread, other threads:[~2011-06-08 14:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-08 13:01 [PATCH] mtd: davinci_nand: remove redundant mtd_device_unregister in nand_davinci_remove Axel Lin
2011-06-08 14:52 ` Artem Bityutskiy

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