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:
f2c2d7e
)
ARM: mach-shmobile: clock-r8a7740: use followparent_recalc on usb24s
author
Kuninori Morimoto
<
[email protected]
>
Mon, 7 May 2012 01:12:41 +0000
(18:12 -0700)
committer
Rafael J. Wysocki
<
[email protected]
>
Sat, 12 May 2012 20:24:50 +0000
(22:24 +0200)
If the clocks is always same value as the parent clock,
we can use followparent_recalc() for .recalc
Reported-by: Paul Mundt <
[email protected]
>
Signed-off-by: Kuninori Morimoto <
[email protected]
>
Reviewed-by: Simon Horman <
[email protected]
>
Acked-by: Magnus Damm <
[email protected]
>
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
arch/arm/mach-shmobile/clock-r8a7740.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-shmobile/clock-r8a7740.c
b/arch/arm/mach-shmobile/clock-r8a7740.c
index 89a2f9dad3b31e361b34a7cf3e2714c76e61cfd2..81b54a6af20f58f2210c8e0b281692be420b6e5d 100644
(file)
--- a/
arch/arm/mach-shmobile/clock-r8a7740.c
+++ b/
arch/arm/mach-shmobile/clock-r8a7740.c
@@
-188,11
+188,6
@@
static struct clk *usb24s_parents[] = {
[1] = &extal2_clk
};
-static unsigned long usb24s_recalc(struct clk *clk)
-{
- return clk->parent->rate;
-};
-
static int usb24s_enable(struct clk *clk)
{
__raw_writel(__raw_readl(USBCKCR) & ~(1 << 8), USBCKCR);
@@
-234,7
+229,7
@@
static int usb24s_set_parent(struct clk *clk, struct clk *parent)
}
static struct sh_clk_ops usb24s_clk_ops = {
- .recalc =
usb24s
_recalc,
+ .recalc =
followparent
_recalc,
.enable = usb24s_enable,
.disable = usb24s_disable,
.set_parent = usb24s_set_parent,