Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308228
b: refs/heads/master
c: 97c3213
h: refs/heads/master
v: v3
  • Loading branch information
Sascha Hauer committed Apr 25, 2012
1 parent d30891c commit 5e0c032
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3a9465fa2dc42a8ebc2fe9144f4dfa23d5899f85
refs/heads/master: 97c3213fd9fc28c0e86b69df09f4228424cafecc
6 changes: 3 additions & 3 deletions trunk/drivers/mtd/nand/mxc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,15 +690,15 @@ static void mxc_nand_select_chip(struct mtd_info *mtd, int chip)
if (chip == -1) {
/* Disable the NFC clock */
if (host->clk_act) {
clk_disable(host->clk);
clk_disable_unprepare(host->clk);
host->clk_act = 0;
}
return;
}

if (!host->clk_act) {
/* Enable the NFC clock */
clk_enable(host->clk);
clk_prepare_enable(host->clk);
host->clk_act = 1;
}

Expand Down Expand Up @@ -1078,7 +1078,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
goto eclk;
}

clk_enable(host->clk);
clk_prepare_enable(host->clk);
host->clk_act = 1;

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
Expand Down

0 comments on commit 5e0c032

Please sign in to comment.