* [PATCH] ARM: sa1100: add dummy clk_set_rate implementation
@ 2015-02-11 0:25 Dmitry Eremin-Solenikov
0 siblings, 0 replies; only message in thread
From: Dmitry Eremin-Solenikov @ 2015-02-11 0:25 UTC (permalink / raw)
To: linux-arm-kernel
Add dummy clk_set_rate implementation that returns -EINVAL if the rate
passed is not equal to the rate of the clock. This for example fixes the
following build issue:
ERROR: "clk_set_rate" [drivers/usb/phy/phy-generic.ko] undefined!
scripts/Makefile.modpost:90: recipe for target '__modpost' failed
Cc: <stable@vger.kernel.org>
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
arch/arm/mach-sa1100/clock.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/mach-sa1100/clock.c b/arch/arm/mach-sa1100/clock.c
index 03c75a8..7f9544d 100644
--- a/arch/arm/mach-sa1100/clock.c
+++ b/arch/arm/mach-sa1100/clock.c
@@ -104,6 +104,15 @@ unsigned long clk_get_rate(struct clk *clk)
}
EXPORT_SYMBOL(clk_get_rate);
+int clk_set_rate(struct clk *clk, unsigned long rate)
+{
+ if (rate != clk_get_rate(clk))
+ return -EINVAL;
+
+ return 0;
+}
+EXPORT_SYMBOL(clk_set_rate);
+
const struct clkops clk_gpio27_ops = {
.enable = clk_gpio27_enable,
.disable = clk_gpio27_disable,
--
2.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-11 0:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-11 0:25 [PATCH] ARM: sa1100: add dummy clk_set_rate implementation Dmitry Eremin-Solenikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).