projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35a96c7
)
sh: clkfwk: Disable init clk op for non-legacy clocks.
author
Paul Mundt
<lethal@linux-sh.org>
Mon, 15 Nov 2010 09:48:25 +0000
(18:48 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Mon, 15 Nov 2010 09:48:25 +0000
(18:48 +0900)
Presently it's only legacy users that are using this clock op, guard it
with an ifdef to ensure that no new users start using it.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/linux/sh_clk.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/sh_clk.h
b/include/linux/sh_clk.h
index 038475a2092f20bdde22419a8c5135b0d1e224f1..9a52f72527dc5a38831686cb824bf043258c8a19 100644
(file)
--- a/
include/linux/sh_clk.h
+++ b/
include/linux/sh_clk.h
@@
-19,7
+19,9
@@
struct clk_mapping {
};
struct clk_ops {
+#ifdef CONFIG_SH_CLK_CPG_LEGACY
void (*init)(struct clk *clk);
+#endif
int (*enable)(struct clk *clk);
void (*disable)(struct clk *clk);
unsigned long (*recalc)(struct clk *clk);