提交 c8241085 编写于 作者: K Kuninori Morimoto 提交者: Rafael J. Wysocki

ARM: mach-shmobile: clock-r8a7740: use followparent_recalc on usb24s

If the clocks is always same value as the parent clock,
we can use followparent_recalc() for .recalc
Reported-by: NPaul Mundt <lethal@linux-sh.org>
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: NSimon Horman <horms@verge.net.au>
Acked-by: NMagnus Damm <damm@opensource.se>
Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
上级 f2c2d7e9
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册