Skip to content

Commit

Permalink
ARM: mach-shmobile: clock-r8a7740: use followparent_recalc on usb24s
Browse files Browse the repository at this point in the history
If the clocks is always same value as the parent clock,
we can use followparent_recalc() for .recalc

Reported-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
  • Loading branch information
Kuninori Morimoto authored and Rafael J. Wysocki committed May 12, 2012
1 parent f2c2d7e commit c824108
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions arch/arm/mach-shmobile/clock-r8a7740.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c824108

Please sign in to comment.