Commit 3d059693 authored by Fabio Estevam's avatar Fabio Estevam Committed by David Woodhouse

nand: mxc_nand: Use clk_prepare_enable/clk_disable_unprepare

Prepare the clock before enabling it.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 1696e6bc
...@@ -784,7 +784,7 @@ static void mxc_nand_select_chip_v2(struct mtd_info *mtd, int chip) ...@@ -784,7 +784,7 @@ static void mxc_nand_select_chip_v2(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;
...@@ -792,7 +792,7 @@ static void mxc_nand_select_chip_v2(struct mtd_info *mtd, int chip) ...@@ -792,7 +792,7 @@ static void mxc_nand_select_chip_v2(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;
} }
......
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