projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1696e6b
)
nand: mxc_nand: Use clk_prepare_enable/clk_disable_unprepare
author
Fabio Estevam
<
[email protected]
>
Fri, 25 May 2012 23:14:50 +0000
(20:14 -0300)
committer
David Woodhouse
<
[email protected]
>
Fri, 6 Jul 2012 17:17:05 +0000
(18:17 +0100)
Prepare the clock before enabling it.
Signed-off-by: Fabio Estevam <
[email protected]
>
Signed-off-by: Artem Bityutskiy <
[email protected]
>
Signed-off-by: David Woodhouse <
[email protected]
>
drivers/mtd/nand/mxc_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/mxc_nand.c
b/drivers/mtd/nand/mxc_nand.c
index 6acc790c2fbb96880ec29642a1d2e7e2528dbee9..fc3b38c7ffb4c8f3442ec811681ecbabb3f8ef1f 100644
(file)
--- a/
drivers/mtd/nand/mxc_nand.c
+++ b/
drivers/mtd/nand/mxc_nand.c
@@
-784,7
+784,7
@@
static void mxc_nand_select_chip_v2(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;
@@
-792,7
+792,7
@@
static void mxc_nand_select_chip_v2(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;
}