From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: linux-sh@vger.kernel.org
Subject: [PATCH] ARM: mach-shmobile: clock-r8a7740: use followparent_recalc on usb24s
Date: Mon, 07 May 2012 01:12:41 +0000 [thread overview]
Message-ID: <87y5p423qy.wl%kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <201204252313.23899.rjw@sisk.pl>
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>
---
arch/arm/mach-shmobile/clock-r8a7740.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/arch/arm/mach-shmobile/clock-r8a7740.c b/arch/arm/mach-shmobile/clock-r8a7740.c
index 89a2f9d..81b54a6 100644
--- 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,
--
1.7.5.4
next prev parent reply other threads:[~2012-05-07 1:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-25 21:13 [PATCH] ARM: mach-shmobile: clock-r8a7740: add FSI clock Rafael J. Wysocki
2012-05-07 1:12 ` Kuninori Morimoto [this message]
2012-05-07 4:10 ` [PATCH] ARM: mach-shmobile: clock-r8a7740: use followparent_recalc on usb24s Simon Horman
2012-05-07 5:58 ` [PATCH] ARM: mach-shmobile: clock-r8a7740: add sh-eth clock Kuninori Morimoto
2012-05-07 6:23 ` Simon Horman
2012-05-07 18:58 ` [PATCH] ARM: mach-shmobile: clock-r8a7740: use followparent_recalc on usb24s Rafael J. Wysocki
2012-05-07 18:59 ` [PATCH] ARM: mach-shmobile: clock-r8a7740: add sh-eth clock Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y5p423qy.wl%kuninori.morimoto.gx@renesas.com \
--to=kuninori.morimoto.gx@renesas.com \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.