Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1693798
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 1/3] ARM: davinci: normalize clk API |
| Date | 2017-07-21 17:30 +0200 |
| Message-ID | <u5I2m-6wF-25@gated-at.bofh.it> (permalink) |
| References | <u5I2l-6wF-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
davinci still has its own clk implementation, but lacks
a clk_get_parent() helper, which can lead to link errors
in randconfig builds.
This adds the usual implementation.
Acked-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
arch/arm/mach-davinci/clock.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/mach-davinci/clock.c b/arch/arm/mach-davinci/clock.c
index f5dce9b4e617..f77a4f766050 100644
--- a/arch/arm/mach-davinci/clock.c
+++ b/arch/arm/mach-davinci/clock.c
@@ -218,6 +218,15 @@ int clk_set_parent(struct clk *clk, struct clk *parent)
}
EXPORT_SYMBOL(clk_set_parent);
+struct clk *clk_get_parent(struct clk *clk)
+{
+ if (!clk)
+ return NULL;
+
+ return clk->parent;
+}
+EXPORT_SYMBOL(clk_get_parent);
+
int clk_register(struct clk *clk)
{
if (clk == NULL || IS_ERR(clk))
--
2.9.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v2 1/3] ARM: davinci: normalize clk API Arnd Bergmann <arnd@arndb.de> - 2017-07-21 17:30 +0200
csiph-web