diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-01-29 00:17:41 +0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2017-07-27 14:15:29 +0300 |
commit | 31d5cf1476a09c95d8f5c2d1d77fa57f7d802b52 (patch) | |
tree | 6494364ca57649ce9fbd8439dd1fa00df5865c0b /arch | |
parent | d997211e1ea14a67baadf391a8106d4330244700 (diff) | |
download | linux-31d5cf1476a09c95d8f5c2d1d77fa57f7d802b52.tar.xz |
ARM: davinci: normalize clk API
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-davinci/clock.c | 9 |
1 files changed, 9 insertions, 0 deletions
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)) |