summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJason <r64343@freescale.com>2009-11-24 16:14:47 +0800
committerJason <r64343@freescale.com>2009-11-25 13:33:51 +0800
commit8f6850c957153b874dc9d2e3dfaea82dcd137dd6 (patch)
treedd445e8d8601aa4b57ed9fdc61d8d45f52d8b817 /drivers
parent425fe66680e26f99755a8e26622e84b63f167d3e (diff)
ENGR00118706 Update NAND suspend-resume driver mechanism on 2.6.31 kernel
Suspend then resume, kernel will print one warning message. This is due to mtd suspend/resume framework change on 2.6.31 kernel. Please refer to the follwing commit for detailed information commit 15bce40cb3133bcc07d548013df97e4653d363c1 [MTD] Restore suspend/resume support for mtd devices Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/nand/mxc_nd2.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/mtd/nand/mxc_nd2.c b/drivers/mtd/nand/mxc_nd2.c
index f53707af9886..470f799bd41c 100644
--- a/drivers/mtd/nand/mxc_nd2.c
+++ b/drivers/mtd/nand/mxc_nd2.c
@@ -1364,19 +1364,13 @@ static int __exit 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);
- int ret = 0;
DEBUG(MTD_DEBUG_LEVEL0, "MXC_ND2 : NAND suspend\n");
- if (info)
- ret = info->suspend(info);
-
- /* Disable the NFC clock */
- clk_disable(nfc_clk);
/* Disable the NFC clock */
clk_disable(nfc_clk);
- return ret;
+ return 0;
}
/*!
@@ -1391,17 +1385,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);
- int ret = 0;
DEBUG(MTD_DEBUG_LEVEL0, "MXC_ND2 : NAND resume\n");
+
/* Enable the NFC clock */
clk_enable(nfc_clk);
- if (info) {
- info->resume(info);
- }
-
- return ret;
+ return 0;
}
#else