projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a9465f
)
mtd mxc_nand: prepare/unprepare clock
author
Sascha Hauer
<s.hauer@pengutronix.de>
Wed, 7 Mar 2012 19:56:35 +0000
(20:56 +0100)
committer
Sascha Hauer
<s.hauer@pengutronix.de>
Wed, 25 Apr 2012 15:03:39 +0000
(17:03 +0200)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
drivers/mtd/nand/mxc_nand.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/nand/mxc_nand.c
b/drivers/mtd/nand/mxc_nand.c
index cc0678a967c12c6b054d21ee3fe5b868ee997924..9e374e9bd2966bf197b348744c3e11c6b6fa1df4 100644
(file)
--- a/
drivers/mtd/nand/mxc_nand.c
+++ b/
drivers/mtd/nand/mxc_nand.c
@@
-690,7
+690,7
@@
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;
@@
-698,7
+698,7
@@
static void mxc_nand_select_chip(struct mtd_info *mtd, int chip)
if (!host->clk_act) {
/* Enable the NFC clock */
- clk_enable(host->clk);
+ clk_
prepare_
enable(host->clk);
host->clk_act = 1;
}
@@
-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);