Commit 97c3213f authored by Sascha Hauer's avatar Sascha Hauer

mtd mxc_nand: prepare/unprepare clock

Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 3a9465fa
...@@ -690,7 +690,7 @@ static void mxc_nand_select_chip(struct mtd_info *mtd, int chip) ...@@ -690,7 +690,7 @@ static void mxc_nand_select_chip(struct mtd_info *mtd, int chip)
if (chip == -1) { if (chip == -1) {
/* Disable the NFC clock */ /* Disable the NFC clock */
if (host->clk_act) { if (host->clk_act) {
clk_disable(host->clk); clk_disable_unprepare(host->clk);
host->clk_act = 0; host->clk_act = 0;
} }
return; return;
...@@ -698,7 +698,7 @@ static void mxc_nand_select_chip(struct mtd_info *mtd, int chip) ...@@ -698,7 +698,7 @@ static void mxc_nand_select_chip(struct mtd_info *mtd, int chip)
if (!host->clk_act) { if (!host->clk_act) {
/* Enable the NFC clock */ /* Enable the NFC clock */
clk_enable(host->clk); clk_prepare_enable(host->clk);
host->clk_act = 1; host->clk_act = 1;
} }
...@@ -1078,7 +1078,7 @@ static int __init mxcnd_probe(struct platform_device *pdev) ...@@ -1078,7 +1078,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
goto eclk; goto eclk;
} }
clk_enable(host->clk); clk_prepare_enable(host->clk);
host->clk_act = 1; host->clk_act = 1;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment