From patchwork Wed May 13 15:43:30 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mack X-Patchwork-Id: 27154 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 6F5A9B707C for ; Thu, 14 May 2009 01:46:43 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1M4Gci-0008M2-T6; Wed, 13 May 2009 15:44:00 +0000 Received: from buzzloop.caiaq.de ([212.112.241.133]) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1M4GcZ-0008Js-2X for linux-mtd@lists.infradead.org; Wed, 13 May 2009 15:43:57 +0000 Received: from localhost (localhost [127.0.0.1]) by buzzloop.caiaq.de (Postfix) with ESMTP id 56E007C801A; Wed, 13 May 2009 17:43:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at buzzloop.caiaq.de Received: from buzzloop.caiaq.de ([127.0.0.1]) by localhost (buzzloop.caiaq.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xy5-7ube58tC; Wed, 13 May 2009 17:43:40 +0200 (CEST) Received: from localhost.localdomain (pd95699b2.dip0.t-ipconnect.de [217.86.153.178]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by buzzloop.caiaq.de (Postfix) with ESMTPSA id 3A1737C8003; Wed, 13 May 2009 17:43:40 +0200 (CEST) From: Daniel Mack To: linux-kernel@vger.kernel.org Subject: [PATCH] mtd: mxc_nand: fix built breakage Date: Wed, 13 May 2009 17:43:30 +0200 Message-Id: <1242229410-11853-1-git-send-email-daniel@caiaq.de> X-Mailer: git-send-email 1.6.2.1 X-Spam-Score: 0.0 (/) Cc: Sascha Hauer , Linux MTD list , Daniel Mack X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The MXC NAND driver does not currently build with CONFIG_PM set. drivers/mtd/nand/mxc_nand.c: In function 'mxcnd_suspend': drivers/mtd/nand/mxc_nand.c:1021: error: 'nfc_clk' undeclared (first use in this function) drivers/mtd/nand/mxc_nand.c:1021: error: (Each undeclared identifier is reported only once drivers/mtd/nand/mxc_nand.c:1021: error: for each function it appears in.) drivers/mtd/nand/mxc_nand.c: In function 'mxcnd_resume': drivers/mtd/nand/mxc_nand.c:1033: error: 'nfc_clk' undeclared (first use in this function) make[3]: *** [drivers/mtd/nand/mxc_nand.o] Error 1 make[2]: *** [drivers/mtd/nand] Error 2 make[1]: *** [drivers/mtd] Error 2 make: *** [drivers] Error 2 Signed-off-by: Daniel Mack Cc: Sascha Hauer Cc: Linux MTD list --- drivers/mtd/nand/mxc_nand.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 21fd4f1..d352d2a 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c @@ -1011,6 +1011,8 @@ static int __devexit mxcnd_remove(struct platform_device *pdev) static int mxcnd_suspend(struct platform_device *pdev, pm_message_t state) { struct mtd_info *info = platform_get_drvdata(pdev); + struct nand_chip *nand_chip = info->priv; + struct mxc_nand_host *host = nand_chip->priv; int ret = 0; DEBUG(MTD_DEBUG_LEVEL0, "MXC_ND : NAND suspend\n"); @@ -1018,7 +1020,7 @@ static int mxcnd_suspend(struct platform_device *pdev, pm_message_t state) ret = info->suspend(info); /* Disable the NFC clock */ - clk_disable(nfc_clk); /* FIXME */ + clk_disable(host->clk); /* FIXME */ return ret; } @@ -1026,11 +1028,13 @@ static int mxcnd_suspend(struct platform_device *pdev, pm_message_t state) static int mxcnd_resume(struct platform_device *pdev) { struct mtd_info *info = platform_get_drvdata(pdev); + struct nand_chip *nand_chip = info->priv; + struct mxc_nand_host *host = nand_chip->priv; int ret = 0; DEBUG(MTD_DEBUG_LEVEL0, "MXC_ND : NAND resume\n"); /* Enable the NFC clock */ - clk_enable(nfc_clk); /* FIXME */ + clk_enable(host->clk); /* FIXME */ if (info) info->resume(info);