|
@@ -886,11 +886,10 @@ static int mxcnd_suspend(struct platform_device *pdev, pm_message_t state)
|
|
|
int ret = 0;
|
|
|
|
|
|
DEBUG(MTD_DEBUG_LEVEL0, "MXC_ND : NAND suspend\n");
|
|
|
- if (mtd) {
|
|
|
- ret = mtd->suspend(mtd);
|
|
|
- /* Disable the NFC clock */
|
|
|
- clk_disable(host->clk);
|
|
|
- }
|
|
|
+
|
|
|
+ ret = mtd->suspend(mtd);
|
|
|
+ /* Disable the NFC clock */
|
|
|
+ clk_disable(host->clk);
|
|
|
|
|
|
return ret;
|
|
|
}
|
|
@@ -904,11 +903,9 @@ static int mxcnd_resume(struct platform_device *pdev)
|
|
|
|
|
|
DEBUG(MTD_DEBUG_LEVEL0, "MXC_ND : NAND resume\n");
|
|
|
|
|
|
- if (mtd) {
|
|
|
- /* Enable the NFC clock */
|
|
|
- clk_enable(host->clk);
|
|
|
- mtd->resume(mtd);
|
|
|
- }
|
|
|
+ /* Enable the NFC clock */
|
|
|
+ clk_enable(host->clk);
|
|
|
+ mtd->resume(mtd);
|
|
|
|
|
|
return ret;
|
|
|
}
|