From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pw0-f49.google.com ([209.85.160.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QSJZt-0005n9-5J for linux-mtd@lists.infradead.org; Fri, 03 Jun 2011 01:53:33 +0000 Received: by pwi8 with SMTP id 8so1073170pwi.36 for ; Thu, 02 Jun 2011 18:53:30 -0700 (PDT) Subject: [PATCH 2/2] mtd: nomadik_nand: add missing nand_release in nomadik_nand_remove From: Axel Lin To: linux-kernel@vger.kernel.org In-Reply-To: <1307065913.10001.2.camel@phoenix> References: <1307065913.10001.2.camel@phoenix> Content-Type: text/plain; charset="UTF-8" Date: Fri, 03 Jun 2011 09:53:26 +0800 Message-ID: <1307066006.10001.4.camel@phoenix> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: Artem Bityutskiy , linux-mtd@lists.infradead.org, David Woodhouse , Sachin Verma List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Signed-off-by: Axel Lin --- drivers/mtd/nand/nomadik_nand.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/nand/nomadik_nand.c b/drivers/mtd/nand/nomadik_nand.c index b6a5c86..b463ecf 100644 --- a/drivers/mtd/nand/nomadik_nand.c +++ b/drivers/mtd/nand/nomadik_nand.c @@ -187,6 +187,7 @@ static int nomadik_nand_remove(struct platform_device *pdev) pdata->exit(); if (host) { + nand_release(&host->mtd); iounmap(host->cmd_va); iounmap(host->data_va); iounmap(host->addr_va); -- 1.7.4.1