Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31d5cf14 authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

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: default avatarSekhar Nori <nsekhar@ti.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent d997211e
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -218,6 +218,15 @@ int clk_set_parent(struct clk *clk, struct clk *parent)
}
}
EXPORT_SYMBOL(clk_set_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)
int clk_register(struct clk *clk)
{
{
	if (clk == NULL || IS_ERR(clk))
	if (clk == NULL || IS_ERR(clk))